@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

body {
    font-family: 'Spoqa Han Sans Neo', sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
}

h1, h2, h3 {
    color: #333;
    margin-bottom: 20px;
}

p {
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

input[type="submit"],
button {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

input[type="submit"]:hover,
button:hover {
    background-color: #0056b3;
}

table {
    border-collapse: collapse;
    margin: 20px 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    display: block;
    font-size: 13px;
}

table th,
table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 13px;
}

th {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
}

.btn {
    padding: 12px 24px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.btn:hover {
    background-color: #0056b3;
}

.booked {
    background-color: #e0f7fa;
    padding: 6px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: #00796b;
}

.disabled {
    background-color: #eeeeee;
    color: #999;
    text-align: center;
    padding: 6px;
    border-radius: 5px;
    font-weight: bold;
}

a {
    display: inline-block;
    padding: 3px 6px;
    border: 1px solid #007BFF;
    border-radius: 4px;
    text-decoration: none;
    background-color: #007BFF;
    color: white;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

a:hover {
    background-color: #0056b3;
}

a.cancel {
    background-color: #dc3545;
    border: 1px solid #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
}

a.cancel:hover {
    background-color: #a71d2a;
}

.section-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 30px 0 10px 0;
}

/* 데스크탑 전용 */
@media (min-width: 769px) {
    .mobile-view {
        display: none;
    }
}

/* 모바일 전용 */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    .desktop-view {
        display: none;
    }

    .mobile-view {
        display: block;
    }

    .section-title {
        font-size: 1.2em;
        margin: 25px 0 10px;
        text-align: left;
    }

    .card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .mobile-card {
        background: #fff4e6;
        padding: 12px;
        border-radius: 10px;
        box-shadow: 0 0 4px rgba(0,0,0,0.1);
        text-align: left;
        font-size: 16px;
        line-height: 1.4;
    }

    .mobile-card button {
        width: 100%;
        padding: 8px;
        font-size: 13px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
    }

    .mobile-card .btn-apply {
        background-color: #007bff;
        color: white;
    }

    .mobile-card .btn-cancel {
        background-color: #dc3545;
        color: white;
    }

    .mobile-card .btn-disabled {
        background-color: #ccc;
        color: #333;
        cursor: not-allowed;
    }

    .mobile-toggle-buttons {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin: 10px 0;
    }

    .mobile-toggle-buttons button {
        padding: 8px 16px;
        font-size: 14px;
        background-color: #007BFF;
        border: none;
        border-radius: 6px;
        color: white;
        cursor: pointer;
    }
}

#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 14px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#scrollTopBtn:hover {
    background-color: #0056b3;
}

/* 선생님별 카드 색상 */
.mobile-card.teacher-김정태 { background-color: #fcefe3; }
.mobile-card.teacher-김은주 { background-color: #eaf6f6; }
.mobile-card.teacher-문지혜 { background-color: #f5e7f7; }
.mobile-card.teacher-이선호 { background-color: #f9f9dc; }
.mobile-card.teacher-김정은 { background-color: #e0f7fa; }
.mobile-card.teacher-김주희 { background-color: #fff0f0; }
.mobile-card.teacher-장요셉 { background-color: #f1f8e9; }
.mobile-card.teacher-정세희 { background-color: #ede7f6; }
.mobile-card.teacher-신기용 { background-color: #fffde7; }
.mobile-card.teacher-장혜진 { background-color: #e3f2fd; }
.mobile-card.teacher-명순민 { background-color: #ffebee; }
.mobile-card.teacher-김경숙 { background-color: #f9fbe7; }
.mobile-card.teacher-김선미 { background-color: #fce4ec; }
.mobile-card.teacher-이상범 { background-color: #e0f2f1; }
.mobile-card.teacher-손보라 { background-color: #f3e5f5; }
.mobile-card.teacher-한아름 { background-color: #e8f5e9; }


