* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family:
        Pretendard,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #111827;
    background: #f5f7fb;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =====================================================
   로그인
===================================================== */

.login-body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.16),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f8fafc,
            #eef2ff
        );
}

.login-wrapper {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;
}

.login-card {
    width: 100%;
    max-width: 430px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 22px;

    padding: 44px 40px;

    box-shadow:
        0 25px 70px rgba(15, 23, 42, 0.10);
}

.login-logo {
    font-size: 35px;
    font-weight: 900;

    letter-spacing: -1.5px;

    color: #2563eb;
}

.login-subtitle {
    margin-top: 4px;

    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.login-card h1 {
    margin: 36px 0 8px;

    font-size: 25px;

    letter-spacing: -1px;
}

.login-description {
    margin: 0 0 28px;

    color: #64748b;

    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    height: 50px;

    border: 1px solid #dbe1ea;
    border-radius: 10px;

    padding: 0 15px;

    outline: none;

    background: #ffffff;
}

.form-group input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}

.login-button {
    width: 100%;
    height: 52px;

    margin-top: 7px;

    border: 0;
    border-radius: 10px;

    background: #2563eb;
    color: #ffffff;

    font-weight: 800;

    cursor: pointer;
}

.login-button:hover {
    background: #1d4ed8;
}

.message-area {
    margin-bottom: 20px;
}

.message-error {
    padding: 12px 14px;

    border-radius: 9px;

    background: #fef2f2;
    color: #b91c1c;

    font-size: 13px;
    font-weight: 600;
}

.login-footer {
    margin-top: 32px;

    padding-top: 22px;

    border-top: 1px solid #eef2f7;

    text-align: center;

    color: #94a3b8;

    font-size: 12px;
}


/* =====================================================
   공통 헤더
===================================================== */

.dashboard-body {
    min-height: 100vh;
}

.top-header {
    height: 72px;

    padding: 0 42px;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;

    top: 0;

    z-index: 100;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.header-logo {
    color: #2563eb;

    font-size: 27px;
    font-weight: 900;

    letter-spacing: -1px;
}

.header-title {
    margin-left: 18px;

    padding-left: 18px;

    border-left: 1px solid #e5e7eb;

    color: #64748b;

    font-size: 13px;
    font-weight: 600;
}

.header-right {
    gap: 20px;
}

.user-information {
    font-size: 13px;

    color: #64748b;
}

.user-information strong {
    color: #111827;
}

.user-divider {
    margin: 0 8px;

    color: #cbd5e1;
}

.logout-button,
.back-button {
    border: 1px solid #dbe1ea;

    background: #ffffff;

    padding: 8px 13px;

    border-radius: 8px;

    color: #475569;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.logout-button:hover,
.back-button:hover {
    background: #f8fafc;
}


/* =====================================================
   메인 대시보드
===================================================== */

.dashboard-container {
    max-width: 1250px;

    margin: 0 auto;

    padding: 54px 32px 80px;
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 55px;
}

.welcome-small {
    color: #2563eb;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 1.2px;
}

.welcome-section h1 {
    margin: 10px 0 8px;

    font-size: 36px;

    letter-spacing: -1.8px;
}

.welcome-section p {
    margin: 0;

    color: #64748b;

    font-size: 15px;
}

.year-box {
    min-width: 145px;

    padding: 18px 22px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.year-box span {
    display: block;

    margin-bottom: 2px;

    color: #94a3b8;

    font-size: 11px;
    font-weight: 700;
}

.year-box strong {
    font-size: 26px;
}

.dashboard-section {
    margin-top: 45px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0 0 5px;

    font-size: 20px;

    letter-spacing: -0.7px;
}

.section-heading p {
    margin: 0;

    color: #94a3b8;

    font-size: 13px;
}

.menu-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.menu-card {
    min-height: 150px;

    padding: 27px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 15px;

    display: flex;
    align-items: flex-start;

    transition:
        transform 0.15s,
        border-color 0.15s,
        box-shadow 0.15s;
}

.menu-card:hover {
    transform: translateY(-2px);

    border-color: #bfdbfe;

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.07);
}

.menu-number {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 10px;

    background: #eff6ff;
    color: #2563eb;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 900;
}

.menu-content {
    margin-left: 20px;
}

.menu-content h3 {
    margin: 1px 0 8px;

    font-size: 17px;

    letter-spacing: -0.5px;
}

.menu-content p {
    margin: 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.7;
}

.menu-arrow {
    margin-left: auto;

    padding-left: 15px;

    color: #94a3b8;

    font-size: 20px;
}

.admin-section {
    padding-top: 10px;
}

.admin-menu-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}

.admin-card {
    padding: 20px;

    background: #111827;
    color: #ffffff;

    border-radius: 12px;

    transition:
        transform 0.15s,
        background 0.15s;
}

.admin-card:hover {
    transform: translateY(-2px);

    background: #1e293b;
}

.admin-card strong {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
}

.admin-card span {
    color: #94a3b8;

    font-size: 11px;
}


/* =====================================================
   점수 입력 페이지
===================================================== */

.score-page-container {
    width: 100%;

    max-width: 1600px;

    margin: 0 auto;

    padding: 42px 32px 80px;
}

.score-page-heading {
    margin-bottom: 27px;
}

.score-page-heading h1 {
    margin: 8px 0 7px;

    font-size: 30px;

    letter-spacing: -1.3px;
}

.score-page-heading p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
}


/* 메시지 */

.page-message-area {
    margin-bottom: 20px;
}

.page-message {
    padding: 15px 18px;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;
}

.page-message-success {
    background: #ecfdf5;

    border: 1px solid #a7f3d0;

    color: #047857;
}

.page-message-error {
    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;
}


/* 지원 정보 */

.score-setting-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 15px;

    padding: 24px;

    margin-bottom: 20px;
}

.score-setting-title {
    margin-bottom: 20px;
}

.score-setting-title h2 {
    margin: 0 0 5px;

    font-size: 17px;
}

.score-setting-title p {
    margin: 0;

    color: #94a3b8;

    font-size: 12px;
}

.score-setting-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;
}

.score-field label {
    display: block;

    margin-bottom: 7px;

    color: #475569;

    font-size: 12px;
    font-weight: 800;
}

.score-field select,
.fixed-academy {
    width: 100%;
    height: 46px;

    border: 1px solid #dbe1ea;
    border-radius: 9px;

    padding: 0 12px;

    background: #ffffff;

    color: #111827;

    outline: none;

    font-size: 13px;
}

.score-field select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.08);
}

.score-field select:disabled {
    background: #f8fafc;

    color: #94a3b8;
}

.fixed-academy {
    display: flex;
    align-items: center;

    background: #f8fafc;

    font-weight: 700;
}


/* 점수표 카드 */

.score-table-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 15px;

    overflow: hidden;
}

.score-table-header {
    min-height: 83px;

    padding: 20px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #eef2f7;
}

.score-table-header h2 {
    margin: 0 0 5px;

    font-size: 17px;
}

.score-table-header p {
    margin: 0;

    color: #94a3b8;

    font-size: 12px;
}

.score-table-buttons {
    display: flex;

    gap: 8px;
}

.table-secondary-button {
    min-height: 36px;

    padding: 0 13px;

    border: 1px solid #dbe1ea;
    border-radius: 8px;

    background: #ffffff;

    color: #475569;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.table-secondary-button:hover {
    border-color: #93c5fd;

    background: #eff6ff;

    color: #1d4ed8;
}


/* 붙여넣기 */

.paste-guide {
    margin: 18px 24px 0;

    padding: 13px 15px;

    border: 1px solid #dbeafe;
    border-radius: 9px;

    background: #eff6ff;

    display: flex;
    align-items: center;

    gap: 12px;
}

.paste-guide-icon {
    flex-shrink: 0;

    padding: 6px 9px;

    border-radius: 6px;

    background: #2563eb;

    color: #ffffff;

    font-size: 10px;
    font-weight: 900;
}

.paste-guide strong {
    display: block;

    margin-bottom: 2px;

    color: #1e3a8a;

    font-size: 12px;
}

.paste-guide span {
    color: #64748b;

    font-size: 11px;
}


/* 표 */

.score-table-wrapper {
    width: 100%;

    overflow-x: auto;

    padding: 18px 24px 0;
}

.score-input-table {
    width: 100%;

    min-width: 900px;

    border-collapse: separate;
    border-spacing: 0;

    border: 1px solid #e5e7eb;

    border-radius: 9px;

    overflow: hidden;
}

.score-input-table th {
    height: 42px;

    padding: 7px 8px;

    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #dbe1ea;

    background: #f8fafc;

    color: #475569;

    white-space: nowrap;

    text-align: center;

    font-size: 11px;
    font-weight: 800;
}

.score-input-table td {
    height: 45px;

    padding: 0;

    border-right: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;

    background: #ffffff;
}

.score-input-table th:last-child,
.score-input-table td:last-child {
    border-right: 0;
}

.score-input-table tbody tr:last-child td {
    border-bottom: 0;
}

.score-input-table tbody tr:hover td {
    background: #fafcff;
}

.row-number-column {
    width: 50px;
}

.name-column {
    min-width: 120px;
}

.row-number {
    width: 50px;

    text-align: center;

    color: #94a3b8;

    font-size: 11px;
    font-weight: 800;

    background: #f8fafc !important;
}

.table-input,
.table-select {
    width: 100%;
    height: 44px;

    margin: 0;

    padding: 0 9px;

    border: 0;

    background: transparent;

    color: #111827;

    outline: none;

    font-size: 12px;
}

.table-input {
    text-align: center;
}

.student-name {
    text-align: left;

    font-weight: 700;
}

.table-select {
    min-width: 90px;

    text-align: center;
}

.table-input:focus,
.table-select:focus {
    background: #eff6ff;

    box-shadow:
        inset 0 0 0 2px #3b82f6;
}

.total-score {
    background: #f8fafc;

    font-weight: 800;
}


/* number 화살표 최소화 */

.table-input::-webkit-outer-spin-button,
.table-input::-webkit-inner-spin-button {
    margin: 0;
}


/* 안내 */

.score-help {
    margin: 16px 24px 0;

    padding: 13px 15px;

    border-radius: 9px;

    background: #f8fafc;

    color: #475569;

    font-size: 11px;

    line-height: 1.7;
}

.score-help strong {
    color: #1d4ed8;
}

.score-help-sub {
    color: #94a3b8;
}


/* 등록 */

.score-submit-area {
    margin-top: 20px;

    padding: 20px 24px;

    border-top: 1px solid #eef2f7;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.score-submit-info strong {
    display: block;

    margin-bottom: 3px;

    font-size: 14px;
}

.score-submit-info span {
    color: #94a3b8;

    font-size: 11px;
}

.score-submit-button {
    min-width: 145px;
    height: 46px;

    padding: 0 22px;

    border: 0;
    border-radius: 9px;

    background: #2563eb;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 6px 15px rgba(37, 99, 235, 0.18);
}

.score-submit-button:hover {
    background: #1d4ed8;
}


/* =====================================================
   태블릿
===================================================== */

@media (max-width: 1100px) {

    .score-setting-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .admin-menu-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =====================================================
   모바일
===================================================== */

@media (max-width: 850px) {

    .top-header {
        padding: 0 20px;
    }

    .header-title {
        display: none;
    }

    .user-information span {
        display: none;
    }

    .dashboard-container {
        padding: 35px 18px 60px;
    }

    .welcome-section {
        display: block;
    }

    .year-box {
        margin-top: 25px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .score-page-container {
        padding: 30px 16px 60px;
    }

    .score-setting-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .score-table-header {
        align-items: flex-start;

        gap: 15px;

        flex-direction: column;
    }

    .paste-guide {
        align-items: flex-start;
    }

}


@media (max-width: 500px) {

    .login-card {
        padding: 35px 25px;
    }

    .user-information {
        display: none;
    }

    .welcome-section h1 {
        font-size: 29px;
    }

    .admin-menu-grid {
        grid-template-columns: 1fr;
    }

    .score-setting-grid {
        grid-template-columns: 1fr;
    }

    .score-table-buttons {
        width: 100%;

        flex-wrap: wrap;
    }

    .table-secondary-button {
        flex: 1;
    }

    .score-submit-area {
        align-items: stretch;

        gap: 15px;

        flex-direction: column;
    }

    .score-submit-button {
        width: 100%;
    }

}