html,
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.material-symbols-rounded {
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
    line-height: 1;
}

.table-wrap {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.glass-surface {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
    backdrop-filter: blur(10px);
}

.panel-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1rem;
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.35);
}

.table-panel {
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1rem;
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

table thead tr th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(248, 250, 252, 0.96);
}

table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

table tbody tr {
    transition: background-color 0.3s ease;
}

table tbody tr:hover {
    background: rgba(217, 232, 242, 0.45);
}

.nav-item {
    transition: all 0.3s ease;
}

.nav-item:hover {
    transform: translateX(2px);
}

.nav-item.bg-gradient-to-r {
    color: #ffffff;
}

.nav-item.bg-gradient-to-r .material-symbols-rounded {
    color: #ffffff;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    height: 2.5rem;
    border-radius: 0.8rem;
    padding: 0 1rem;
    line-height: 1.2;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0b497c, #0f5a99);
    color: #ffffff;
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid #d7dee8;
    background: #ffffff;
    color: #334155;
}

.btn-secondary:hover {
    background: #f8fafc;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
}

.btn-danger:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.status-switch {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 2.5rem;
    min-width: 2.5rem;
    padding: 0.1rem;
    border: 1px solid #d7dee8;
    border-radius: 9999px;
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
}

.status-switch:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08), 0 4px 10px -6px rgba(15, 23, 42, 0.35);
}

.status-switch:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.status-switch.is-on {
    border-color: #86efac;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.18);
}

.status-switch-track {
    display: inline-flex;
    width: 100%;
}

.status-switch-thumb {
    height: 1rem;
    width: 1rem;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-switch.is-on .status-switch-thumb {
    transform: translateX(1.25rem);
}

.status-switch:hover .status-switch-thumb {
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
}

.file-upload-input {
    display: flex;
    align-items: center;
    height: 3rem;
    margin: 0;
    padding: 0.4rem;
    box-sizing: border-box;
    line-height: 1;
}

.file-upload-input::file-selector-button {
    margin: 0 0.75rem 0 0;
    padding: 0.55rem 0.95rem;
    border: 1px solid #bfd4e3;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #eef5fa, #d9e8f2);
    color: #0b497c;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-input::file-selector-button:hover {
    border-color: #9bbcd2;
    background: linear-gradient(135deg, #d9e8f2, #c6dceb);
}

.toast {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 70;
    animation: toastIn 0.3s ease;
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-shell.flex {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
}

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 32rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    padding: 1.35rem;
    box-shadow: 0 20px 42px -20px rgba(15, 23, 42, 0.45);
    animation: modalIn 0.24s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

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