* {
    box-sizing: border-box;
}


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

    font-family: Arial, sans-serif;
}


body {
    background: #f4f6f9;
    color: #222;
}


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


button,
input,
select {
    font: inherit;
}



/* =========================================================
   APP
   ========================================================= */

.app {
    min-height: 100vh;
}



/* =========================================================
   HEADER
   ========================================================= */

.header {
    height: 64px;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

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

    padding: 0 24px;
}


.header-left h1 {
    margin: 0;

    font-size: 20px;
}


.header-right {
    position: relative;

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



/* =========================================================
   ADMIN MENU
   ========================================================= */

.admin-menu {
    position: relative;
}


.admin-menu-toggle {
    display: flex;
    align-items: center;

    gap: 7px;

    padding: 8px 4px;

    border: none;

    background: transparent;

    color: #222;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}


.admin-menu-toggle:hover {
    color: #475569;
}


.admin-menu-arrow {
    font-size: 12px;

    transition: transform 0.2s ease;
}


.admin-menu-arrow.open {
    transform: rotate(180deg);
}


.admin-menu-dropdown {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    min-width: 150px;

    padding: 6px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-10px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}


.admin-menu-dropdown.open {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


.admin-menu-item {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 10px 12px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
}


.admin-menu-item:hover {
    background: #f1f5f9;
}


.admin-menu-item.logout {
    color: #b91c1c;
}



/* =========================================================
   BODY
   ========================================================= */

.app-body {
    display: flex;

    min-height: calc(100vh - 64px);
}



/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    width: 240px;

    background: #ffffff;

    border-right: 1px solid #e5e7eb;

    padding: 20px 12px;

    display: flex;
    flex-direction: column;
}


.sidebar-menu {
    display: flex;
    flex-direction: column;

    gap: 6px;

    flex: 1;
}


.menu-item {
    display: block;

    padding: 12px 14px;

    border-radius: 8px;

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


.menu-item:hover {
    background: #f1f5f9;
}


.menu-item.active {
    background: #e2e8f0;
}



/* =========================================================
   MENU SECTION
   ========================================================= */

.menu-section-title {
    margin-top: 18px;
    margin-bottom: 4px;

    padding: 0 14px;

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

    text-transform: uppercase;

    letter-spacing: 0.08em;

    color: #94a3b8;
}



/* =========================================================
   SETTINGS DROPDOWN
   ========================================================= */

.settings-dropdown {
    width: 100%;
}


.settings-dropdown summary {
    list-style: none;

    cursor: pointer;

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

    user-select: none;
}


.settings-dropdown summary::-webkit-details-marker {
    display: none;
}


.settings-chevron {
    font-size: 11px;

    transition: transform 0.2s ease;
}


.settings-dropdown[open] .settings-chevron {
    transform: rotate(180deg);
}


.settings-submenu {
    display: flex;
    flex-direction: column;

    margin-top: 3px;
}


.settings-submenu a {
    display: block;

    padding: 8px 12px 8px 32px;

    color: #6b7280;

    font-size: 13px;

    border-radius: 6px;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}


.settings-submenu a:hover {
    background: #f3f4f6;

    color: #111827;
}



/* =========================================================
   CONTENT
   ========================================================= */

.content {
    flex: 1;

    min-width: 0;

    padding: 30px;
}


.content-header h2 {
    margin: 0 0 8px;

    font-size: 24px;
}


.content-header p {
    margin: 0;

    color: #64748b;
}



/* =========================================================
   WELCOME
   ========================================================= */

.welcome-card {
    margin-top: 24px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 24px;
}


.welcome-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}


.welcome-card p {
    margin: 0;

    color: #64748b;
}



/* =========================================================
   SETTINGS CARD
   ========================================================= */

.settings-card {
    margin-top: 24px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 24px;
}



/* =========================================================
   FORM
   ========================================================= */

.form-grid {
    display: grid;

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

    gap: 20px;
}


.form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.form-group label {
    font-size: 13px;
    font-weight: 600;
}


.form-group input,
.form-group select {
    width: 100%;

    padding: 11px 13px;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    background: #ffffff;

    font-size: 13px;

    outline: none;
}


.form-group input:focus,
.form-group select:focus {
    border-color: #64748b;
}


.form-group small {
    color: #9ca3af;

    font-size: 11px;

    line-height: 1.4;
}



/* =========================================================
   BELL SETTINGS
   ========================================================= */

.bell-setting-row {
    display: flex;

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

    gap: 20px;

    padding: 18px 0;

    border-bottom: 1px solid #e5e7eb;
}


.bell-setting-row:first-child {
    padding-top: 0;
}


.bell-setting-info {
    display: flex;
    flex-direction: column;

    gap: 5px;
}


.bell-setting-info strong {
    font-size: 14px;
}


.bell-setting-info span {
    color: #64748b;

    font-size: 12px;

    line-height: 1.5;
}



/* =========================================================
   SWITCH
   ========================================================= */

.switch {
    position: relative;

    width: 46px;
    height: 24px;

    flex-shrink: 0;
}


.switch input {
    opacity: 0;

    width: 0;
    height: 0;
}


.slider {
    position: absolute;

    inset: 0;

    background: #cbd5e1;

    border-radius: 999px;

    cursor: pointer;

    transition: background 0.2s ease;
}


.slider::before {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    left: 3px;
    top: 3px;

    background: #ffffff;

    border-radius: 50%;

    transition: transform 0.2s ease;
}


.switch input:checked + .slider {
    background: #1e293b;
}


.switch input:checked + .slider::before {
    transform: translateX(22px);
}



/* =========================================================
   BELL FORM
   ========================================================= */

.bell-form-group {
    margin-top: 22px;
}


.volume-control {
    display: flex;

    align-items: center;

    gap: 15px;
}


.volume-control input[type="range"] {
    flex: 1;

    width: 100%;

    padding: 0;

    border: none;
}


#volumeValue {
    min-width: 45px;

    text-align: right;

    font-size: 13px;

    font-weight: 600;

    color: #475569;
}



/* =========================================================
   SETTINGS FOOTER
   ========================================================= */

.settings-footer {
    margin-top: 25px;

    display: flex;

    justify-content: flex-end;
}


.btn-save {
    border: none;

    padding: 11px 20px;

    border-radius: 8px;

    background: #1e293b;

    color: #ffffff;

    cursor: pointer;

    font-size: 13px;

    font-weight: 600;
}


.btn-save:hover {
    background: #334155;
}



/* =========================================================
   ALERT
   ========================================================= */

.alert {
    margin-top: 20px;

    padding: 12px 14px;

    border-radius: 8px;

    font-size: 13px;
}


.alert-success {
    background: #dcfce7;

    color: #166534;

    border: 1px solid #bbf7d0;
}


.alert-error {
    background: #fee2e2;

    color: #991b1b;

    border: 1px solid #fecaca;
}



/* =========================================================
   MANAGEMENT
   ========================================================= */

.management-grid {
    display: grid;

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

    gap: 16px;
}


.management-card {
    display: flex;
    flex-direction: column;

    gap: 7px;

    padding: 18px;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    background: #ffffff;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.management-card:hover {
    background: #f8fafc;

    border-color: #cbd5e1;
}


.management-card strong {
    font-size: 14px;
}


.management-card span {
    color: #64748b;

    font-size: 12px;

    line-height: 1.5;
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .header {
        padding: 0 16px;
    }


    .header-left h1 {
        font-size: 18px;
    }


    .sidebar {
        width: 200px;
    }


    .content {
        padding: 20px;
    }


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


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

}


@media (max-width: 600px) {

    .app-body {
        flex-direction: column;
    }


    .sidebar {
        width: 100%;

        border-right: none;

        border-bottom: 1px solid #e5e7eb;

        padding: 10px;
    }


    .sidebar-menu {
        flex-direction: row;

        flex-wrap: wrap;
    }


    .menu-item {
        padding: 10px 12px;
    }


    .content {
        padding: 16px;
    }


    .content-header h2 {
        font-size: 20px;
    }


    .bell-setting-row {
        align-items: flex-start;
    }


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

}

/* MAIN CONTENT WRAPPER */
.main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* DATA TABLE */
.data-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.data-table th {
    background: #f8fafc;
}

.kelas-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: #eef2ff;
    font-weight: 600;
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.popup-modal {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 24px 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: #fff;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.popup-overlay.fade-out .popup-modal {
    transform: scale(0.9);
}

.popup-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.popup-success .popup-icon {
    background: rgba(40, 167, 69, 0.8);
    color: #fff;
}

.popup-error .popup-icon {
    background: rgba(220, 53, 69, 0.8);
    color: #fff;
}

.popup-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.popup-message {
    font-size: 14px;
    margin-bottom: 18px;
    opacity: 0.95;
    color: #f1f1f1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.popup-btn {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.popup-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}
</style>

/* =========================================================
   GLOBAL POLISH
   ========================================================= */

.main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: #f4f6f9;
}

.content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* TABLE RESPONSIVE */
.data-card {
    overflow-x: auto;
}

.data-table {
    min-width: 500px;
}

/* BUTTON / INPUT */
button,
input,
select {
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

/* MOBILE */
@media (max-width: 600px) {

    .header {
        height: 58px;
    }

    .header-left h1 {
        font-size: 16px;
    }

    .header-right {
        font-size: 13px;
    }

    .app-body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .main-content {
        width: 100%;
    }

    .content {
        padding: 16px;
    }

}

/* =========================================================
   JADWAL BELL
   ========================================================= */

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

.schedule-table th,
.schedule-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.schedule-table th {
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.schedule-table td {
    color: #475569;
    font-size: 13px;
}

.schedule-table tbody tr:hover {
    background: #f8fafc;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

/* =========================================================
   JADWAL BELL - POLISH
   ========================================================= */

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.schedule-table thead th {
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.schedule-table tbody td {
    padding: 15px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 14px;
    background: #ffffff;
}

.schedule-table tbody tr {
    transition: background 0.15s ease;
}

.schedule-table tbody tr:hover td {
    background: #f8fafc;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
    width: 110px;
    text-align: center;
}

.schedule-table th:nth-child(2),
.schedule-table td:nth-child(2) {
    width: 180px;
}

.schedule-table tbody td:first-child {
    color: #1e293b;
    font-weight: 700;
}

.schedule-table tbody td:nth-child(2) {
    color: #64748b;
    font-weight: 600;
}

/* JADWAL CARD */
.content .schedule-table {
    margin-top: 20px;
}

/* MOBILE */
@media (max-width: 600px) {

    .schedule-table {
        min-width: 0;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .schedule-table th:first-child,
    .schedule-table td:first-child {
        width: 80px;
    }

    .schedule-table th:nth-child(2),
    .schedule-table td:nth-child(2) {
        width: auto;
    }
}

/* =========================================================
   DAY MENU - ANIMATED
   ========================================================= */

.day-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: fit-content;
}

.day-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 10px 16px;
    border-radius: 9px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.day-menu a:hover {
    color: #1e293b;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.day-menu a:active {
    transform: translateY(0) scale(0.97);
}

.day-menu a.active {
    color: #ffffff;
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.day-menu a.active:hover {
    transform: translateY(-2px);
}

/* ANIMASI MASUK */
.day-menu a {
    animation: dayMenuIn 0.35s ease both;
}

.day-menu a:nth-child(1) {
    animation-delay: 0.03s;
}

.day-menu a:nth-child(2) {
    animation-delay: 0.06s;
}

.day-menu a:nth-child(3) {
    animation-delay: 0.09s;
}

.day-menu a:nth-child(4) {
    animation-delay: 0.12s;
}

.day-menu a:nth-child(5) {
    animation-delay: 0.15s;
}

@keyframes dayMenuIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE */
@media (max-width: 600px) {

    .day-menu {
        width: 100%;
        gap: 5px;
        overflow-x: auto;
        padding: 5px;
    }

    .day-menu a {
        flex: 1;
        min-width: 65px;
        padding: 9px 10px;
        font-size: 12px;
    }

}

/* SWITCH STATUS BELL - STATIS */
.bell-static-switch {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 28px;
    border-radius: 20px;
    pointer-events: none;
    transition: background .25s ease;
}

.bell-static-switch span {
    position: absolute;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
    transition: left .25s ease;
}

.bell-static-switch.is-on {
    background: #1e293b;
}

.bell-static-switch.is-on span {
    left: 28px;
}

.bell-static-switch.is-off {
    background: #cbd5e1;
}

.bell-static-switch.is-off span {
    left: 4px;
}

@media (max-width: 600px) {
    .bell-static-switch {
        width: 48px;
        height: 26px;
    }

    .bell-static-switch span {
        width: 18px;
        height: 18px;
        top: 4px;
    }

    .bell-static-switch.is-on span {
        left: 26px;
    }
}


/* =========================================================
   GURU - RAPihin CARD & GRID
   ========================================================= */

.guru-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.guru-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.guru-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.guru-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.guru-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.08);
}

.guru-photo-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.guru-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.guru-photo-empty {
    font-size: 56px;
    opacity: .45;
}

.guru-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    margin-bottom: 6px;
    min-height: 46px;
}

.guru-code {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 7px;
}

.guru-mapel {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border-radius: 7px;
    padding: 7px 9px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.guru-action {
    margin-top: auto;
}

.guru-action form {
    margin: 0;
}

.photo-input {
    display: none;
}

.btn-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition: all .2s ease;
}

.btn-photo:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.guru-empty {
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    padding: 50px 25px;
    text-align: center;
}

.guru-empty h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.guru-empty p {
    margin: 0;
    color: #6b7280;
}

/* Notifikasi */
.success-popup {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    animation: guruPopupIn .25s ease;
}

.success-popup-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-weight: 700;
}

.success-popup strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.success-popup p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.success-popup.hide {
    opacity: 0;
    transform: translateY(-10px);
    transition: all .4s ease;
}

@keyframes guruPopupIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet */
@media (max-width: 1100px) {
    .guru-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Tablet kecil */
@media (max-width: 800px) {
    .guru-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .guru-card {
        padding: 14px;
    }
}

/* HP */
@media (max-width: 520px) {
    .guru-grid {
        grid-template-columns: 1fr;
    }

    .guru-header h2 {
        font-size: 21px;
    }

    .guru-card {
        padding: 16px;
    }

    .guru-photo-frame {
        aspect-ratio: 4 / 3;
    }

    .success-popup {
        left: 15px;
        right: 15px;
        top: 15px;
    }
}


/* =========================================================
   GURU CARD - FINAL LAYOUT
   ========================================================= */

.guru-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    width: 100%;
    box-sizing: border-box;
}

.guru-card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px !important;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.guru-photo-frame {
    width: 100% !important;
    height: 230px !important;
    aspect-ratio: auto !important;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.guru-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.guru-photo-empty {
    font-size: 58px;
    opacity: .4;
}

.guru-name {
    display: block !important;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    margin: 0 0 6px !important;
    min-height: 44px;
}

.guru-code {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 8px !important;
}

.guru-mapel {
    display: block !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #374151;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 7px 9px;
    margin: 0 0 14px !important;
    min-height: 34px;
    box-sizing: border-box;
}

.guru-action {
    width: 100%;
    margin-top: auto !important;
}

.guru-action form {
    width: 100%;
    margin: 0;
}

.btn-photo {
    width: 100% !important;
    min-height: 40px;
    box-sizing: border-box;
}

/* Tablet */
@media (max-width: 1100px) {
    .guru-grid {
        grid-template-columns: repeat(3, minmax(200px, 1fr)) !important;
    }

    .guru-photo-frame {
        height: 210px !important;
    }
}

/* Tablet kecil */
@media (max-width: 800px) {
    .guru-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 15px !important;
    }

    .guru-photo-frame {
        height: 220px !important;
    }
}

/* HP */
@media (max-width: 520px) {
    .guru-grid {
        grid-template-columns: 1fr !important;
    }

    .guru-photo-frame {
        height: 260px !important;
    }
}


/* =========================================================
   JADWAL BELL - FINAL LAYOUT
   ========================================================= */

.schedule-card {
    margin-top: 20px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

/* DOWNLOAD TEMPLATE */
.schedule-card > div:first-child {
    margin-bottom: 18px !important;
}

.schedule-card > div:first-child a {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 15px !important;
    background: #16a34a !important;
    color: #ffffff !important;
    border-radius: 9px !important;
    font-size: 13px;
    font-weight: 700 !important;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.16);
    transition: all 0.2s ease;
}

.schedule-card > div:first-child a:hover {
    background: #15803d !important;
    transform: translateY(-1px);
}

/* DAY MENU */
.schedule-card .day-menu {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 20px;
    padding: 5px;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.schedule-card .day-menu a {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.schedule-card .day-menu a:hover {
    transform: none;
}

.schedule-card .day-menu a.active {
    background: #1e293b;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.14);
}

/* JUDUL HARI */
.schedule-card::before {
    content: "JADWAL BELL";
    display: block;
    margin-bottom: 14px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* TABLE WRAPPER */
.schedule-card > div[style*="overflow-x"] {
    overflow-x: visible !important;
}

/* TABLE */
.schedule-card .schedule-table {
    margin-top: 0 !important;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: none;
    overflow: hidden;
}

/* HEADER */
.schedule-card .schedule-table thead th {
    padding: 12px 16px;
    background: #f8fafc;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-card .schedule-table th:first-child,
.schedule-card .schedule-table td:first-child {
    width: 100px;
    text-align: center;
}

/* BODY */
.schedule-card .schedule-table tbody td {
    padding: 13px 16px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.schedule-card .schedule-table tbody td:first-child {
    color: #334155;
    font-weight: 800;
}

.schedule-card .schedule-table tbody td:nth-child(2) {
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.schedule-card .schedule-table tbody tr {
    transition: background 0.15s ease;
}

.schedule-card .schedule-table tbody tr:hover td {
    background: #f8fafc;
}

/* EMPTY */
.schedule-card .empty {
    margin-top: 0;
    padding: 28px 20px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    font-size: 14px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .schedule-card {
        padding: 16px;
        margin-top: 16px;
        border-radius: 13px;
    }

    .schedule-card > div:first-child {
        margin-bottom: 15px !important;
    }

    .schedule-card > div:first-child a {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .schedule-card .day-menu {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .schedule-card .day-menu::-webkit-scrollbar {
        display: none;
    }

    .schedule-card .day-menu a {
        flex: 0 0 auto;
        min-width: 66px;
        padding: 9px 10px;
    }

    .schedule-card .schedule-table th:first-child,
    .schedule-card .schedule-table td:first-child {
        width: 75px;
    }

    .schedule-card .schedule-table thead th {
        padding: 11px 10px;
        font-size: 10px;
    }

    .schedule-card .schedule-table tbody td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .schedule-card .schedule-table tbody td:nth-child(2) {
        font-size: 14px;
    }

}



/* =========================================================
   BELL SEKOLAH - SCHEDULE & IMPORT UI POLISH
   ========================================================= */

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.page-eyebrow {
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.page-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 750;
}

.page-heading p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.page-stat-group {
    display: flex;
    gap: 10px;
}

.page-stat {
    min-width: 112px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
}

.page-stat strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.1;
}

.page-stat span {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
}

.schedule-panel,
.import-main-card,
.import-side-card,
.empty-state {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .035);
}

.schedule-panel {
    padding: 20px;
}

.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.panel-top h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
}

.panel-top p {
    margin: 5px 0 0;
    color: #94a3b8;
    font-size: 12px;
}

.panel-meta,
.slot-count {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.day-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 5px;
    margin-bottom: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.day-tab {
    flex: 1 1 90px;
    border: 0;
    border-radius: 8px;
    padding: 9px 13px;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: .18s ease;
}

.day-tab:hover {
    background: #fff;
    color: #0f172a;
}

.day-tab.active {
    background: #1e293b;
    color: #fff;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .12);
}

.day-panel {
    display: none;
}

.day-panel.active {
    display: block;
    animation: scheduleFade .18s ease;
}

@keyframes scheduleFade {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.day-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 2px 0 12px;
}

.day-label {
    display: block;
    margin-bottom: 3px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.day-panel-heading h4 {
    margin: 0;
    color: #1e293b;
    font-size: 16px;
}

.schedule-table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    scrollbar-width: thin;
}

.clean-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.clean-table th,
.clean-table td {
    border-bottom: 1px solid #eef2f7;
    border-right: 1px solid #f1f5f9;
    padding: 11px 13px;
    text-align: left;
    vertical-align: middle;
}

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

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

.clean-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}

.clean-table tbody td {
    color: #475569;
    font-size: 13px;
}

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

.bell-table .col-number {
    width: 120px;
}

.bell-table .col-status {
    width: 110px;
}

.number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    height: 28px;
    padding: 0 8px;
    background: #f1f5f9;
    border-radius: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.time-value {
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 750;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 999px;
    color: #15803d;
    font-size: 10px;
    font-weight: 800;
}

.status-pill::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
}

.lesson-table {
    min-width: 1680px;
}

.lesson-table th,
.lesson-table td {
    text-align: center;
}

.lesson-table .jam-col {
    width: 72px;
    min-width: 72px;
}

.lesson-table .waktu-col {
    width: 125px;
    min-width: 125px;
}

.lesson-table .class-col {
    min-width: 78px;
}

.lesson-table .sticky-col {
    position: sticky;
    z-index: 2;
    background: #fff;
}

.lesson-table thead .sticky-col {
    z-index: 4;
    background: #f8fafc;
}

.lesson-table .jam-col {
    left: 0;
}

.lesson-table .waktu-col {
    left: 72px;
    box-shadow: 5px 0 8px -8px rgba(15, 23, 42, .35);
}

.lesson-cell {
    min-width: 78px;
    height: 70px;
}

.lesson-subject {
    color: #1e293b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.lesson-teacher {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 9px;
    line-height: 1.3;
}

.lesson-empty {
    color: #cbd5e1;
    font-size: 15px;
}

.table-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    color: #94a3b8;
    font-size: 10px;
}

.table-hint span {
    font-size: 14px;
}

.secondary-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
    transition: .18s ease;
}

.primary-button {
    border: 1px solid #1e293b;
    background: #1e293b;
    color: #fff;
}

.primary-button:hover {
    background: #334155;
    color: #fff;
    transform: translateY(-1px);
}

.secondary-button {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
}

.secondary-button:hover {
    background: #f8fafc;
    color: #0f172a;
}

.empty-state {
    padding: 55px 25px;
    text-align: center;
}

.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    font-size: 22px;
}

.empty-state h3 {
    margin: 0;
    color: #1e293b;
    font-size: 16px;
}

.empty-state p {
    max-width: 480px;
    margin: 7px auto 18px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
}

/* IMPORT */
.import-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
    gap: 18px;
    align-items: start;
}

.import-main-card {
    padding: 24px;
}

.import-side-card {
    padding: 22px;
}

.import-card-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.import-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 11px;
    background: #f1f5f9;
    color: #334155;
    font-size: 20px;
    font-weight: 800;
}

.import-card-header h3,
.side-card-title h3 {
    margin: 0;
    color: #1e293b;
    font-size: 15px;
}

.import-card-header p {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 11px;
}

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    padding: 30px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 13px;
    background: #fafcff;
    color: #475569;
    text-align: center;
    cursor: pointer;
    transition: .18s ease;
}

.upload-zone:hover,
.upload-zone.has-file {
    border-color: #94a3b8;
    background: #f8fafc;
}

.upload-zone input {
    display: none;
}

.upload-cloud {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}

.upload-zone strong {
    color: #334155;
    font-size: 13px;
}

.upload-zone > span:last-child {
    margin-top: 5px;
    color: #94a3b8;
    font-size: 11px;
}

.selected-file {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.selected-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e2e8f0;
    color: #475569;
    font-size: 9px;
    font-weight: 900;
}

.selected-file div {
    flex: 1;
    min-width: 0;
}

.selected-file strong,
.selected-file span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-file strong {
    color: #334155;
    font-size: 11px;
}

.selected-file div span {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 9px;
}

.selected-file button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
}

.selected-file button:hover {
    background: #e2e8f0;
}

.import-submit {
    width: 100%;
    margin-top: 12px;
}

.side-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.info-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.side-card-intro {
    margin: 10px 0 17px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}

.format-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.format-item {
    display: flex;
    gap: 10px;
}

.format-number {
    flex: 0 0 28px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
}

.format-item strong {
    display: block;
    color: #334155;
    font-size: 11px;
}

.format-item p {
    margin: 3px 0 0;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.5;
}

.template-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 19px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    color: #334155;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.template-link:hover {
    background: #f8fafc;
    color: #0f172a;
}

.import-note {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #eef2f7;
}

.import-note strong {
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.import-note p {
    margin: 5px 0 0;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.55;
}

.import-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 17px;
    padding: 12px 14px;
    border-radius: 11px;
    border: 1px solid;
}

.import-alert.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.import-alert.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-radius: 50%;
    background: rgba(255,255,255,.7);
    font-size: 12px;
    font-weight: 900;
}

.import-alert strong {
    display: block;
    font-size: 11px;
}

.import-alert p {
    margin: 3px 0 0;
    font-size: 10px;
    line-height: 1.5;
}

.alert-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .import-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .page-heading {
        flex-direction: column;
        gap: 12px;
    }

    .page-stat-group {
        width: 100%;
    }

    .page-stat {
        flex: 1;
    }

    .schedule-panel,
    .import-main-card,
    .import-side-card {
        padding: 15px;
    }

    .panel-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .secondary-button {
        width: 100%;
    }

    .day-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .day-tab {
        flex: 0 0 auto;
        min-width: 86px;
    }

    .import-main-card {
        padding: 16px;
    }

    .upload-zone {
        min-height: 180px;
        padding: 20px;
    }
}


/* Guru Piket */
.guru-piket-card { max-width: 900px; }
.piket-list { display: flex; flex-direction: column; gap: 10px; }
.piket-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: center; padding: 15px 0; border-bottom: 1px solid #eef2f7; }
.piket-row:last-child { border-bottom: 0; }
.piket-day strong { display:block; color:#0f172a; font-size:13px; }
.piket-day span { display:block; margin-top:3px; color:#94a3b8; font-size:10px; }
.piket-row select { width:100%; min-height:40px; padding:0 12px; border:1px solid #dbe3ec; border-radius:9px; background:#fff; color:#334155; font-size:12px; }
@media (max-width: 700px) { .piket-row { grid-template-columns:1fr; gap:8px; } }


/* Bell slot toggle */
.bell-permission-note { margin:0 0 12px; padding:10px 12px; border:1px solid #e2e8f0; border-radius:9px; background:#f8fafc; color:#64748b; font-size:10px; }
.bell-permission-note.active { background:#f0fdf4; border-color:#dcfce7; color:#15803d; }
.bell-toggle { display:inline-flex; align-items:center; gap:7px; cursor:pointer; user-select:none; }
.bell-toggle input { position:absolute; opacity:0; pointer-events:none; }
.bell-toggle-track { position:relative; width:38px; height:22px; border-radius:999px; background:#cbd5e1; transition:.18s ease; }
.bell-toggle-knob { position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(15,23,42,.2); transition:.18s ease; }
.bell-toggle input:checked + .bell-toggle-track { background:#22c55e; }
.bell-toggle input:checked + .bell-toggle-track .bell-toggle-knob { transform:translateX(16px); }
.bell-toggle input:disabled + .bell-toggle-track { opacity:.55; }
.bell-toggle-label { min-width:22px; color:#64748b; font-size:9px; font-weight:850; }
.bell-toggle input:checked ~ .bell-toggle-label { color:#15803d; }
.status-off { background:#f8fafc !important; border-color:#e2e8f0 !important; color:#94a3b8 !important; }


/* =========================================================
   JADWAL BELL V2
   - today's tab selected automatically
   - unique bell slots per day
   ========================================================= */

.schedule-page .day-panel:not(.active) {
    display: none;
}

.schedule-page .day-tab {
    cursor: pointer;
}

.schedule-page .bell-table .col-number {
    width: 150px;
}

.schedule-page .bell-table .col-status {
    width: 140px;
}

.schedule-page .bell-table .time-value {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
}

.schedule-page .bell-table tbody td {
    height: 62px;
}

@media (max-width: 700px) {
    .schedule-page .bell-table .col-number {
        width: 90px;
    }

    .schedule-page .bell-table .col-status {
        width: 105px;
    }
}


/* =========================================================
   LIVE VOICE
   ========================================================= */

.live-voice-card {
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 24px;
}

.live-voice-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.live-voice-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.live-voice-header h3 {
    margin: 0 0 5px;
    font-size: 19px;
}

.live-voice-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.live-voice-role {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.live-voice-status {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid #dcfce7;
    border-radius: 10px;
    background: #f0fdf4;
}

.live-voice-status[data-state="busy"] {
    border-color: #e5e7eb;
    background: #f8fafc;
}

.live-voice-status[data-state="speaking"] {
    border-color: #dbeafe;
    background: #eff6ff;
}

.live-voice-status[data-state="error"] {
    border-color: #fecaca;
    background: #fef2f2;
}

.live-voice-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #16a34a;
}

.live-voice-status[data-state="busy"] .live-voice-dot {
    background: #94a3b8;
}

.live-voice-status[data-state="speaking"] .live-voice-dot {
    background: #2563eb;
}

.live-voice-status[data-state="error"] .live-voice-dot {
    background: #dc2626;
}

.live-voice-status strong,
.live-voice-status span {
    display: block;
}

.live-voice-status strong {
    font-size: 13px;
    color: #1e293b;
}

.live-voice-status div > span {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.live-voice-talk {
    width: 100%;
    min-height: 72px;
    margin-top: 14px;
    border: 0;
    border-radius: 11px;
    background: #1e293b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transition: transform .12s ease, background .15s ease, opacity .15s ease;
}

.live-voice-talk:hover {
    background: #0f172a;
}

.live-voice-talk:active,
.live-voice-talk.is-speaking {
    background: #2563eb;
    transform: scale(.995);
}

.live-voice-talk.is-busy,
.live-voice-talk:disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    transform: none;
}

.live-voice-talk-icon {
    font-size: 22px;
}

.live-voice-talk strong,
.live-voice-talk small {
    display: block;
    text-align: left;
}

.live-voice-talk strong {
    font-size: 13px;
}

.live-voice-talk small {
    margin-top: 2px;
    font-size: 11px;
    opacity: .8;
}

.live-voice-hint {
    margin-top: 9px;
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
}

@media (max-width: 640px) {
    .live-voice-card {
        padding: 18px;
    }

    .live-voice-header {
        display: block;
    }

    .live-voice-role {
        display: inline-block;
        margin-top: 10px;
    }
}
