:root {
    color-scheme: light dark;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    --primary: #0077b6;
    --primary-dark: #005d8c;
    --secondary: #f0f4ff;
    --text: #1f2933;
    --muted: #606f7b;
    --border: #d5d9e2;
    --bg: #f7fafc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
}

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

.hero {
    --hero-bg-image: url("../img/foto-sekolah.svg");
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 4rem clamp(1.5rem, 4vw, 6rem);
    align-items: center;
    background: var(--hero-bg-image) center/cover no-repeat;
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 3vw, 3rem);
    margin: 1rem 0;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-brand img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 119, 182, 0.08);
    padding: 0.3rem;
}

.hero-school {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.hero-tagline {
    font-size: 0.85rem;
    color: var(--muted);
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--primary-dark);
}

.form-page-hero .badge {
    background: white;
    color: #1f2933;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn.primary {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
    border: none;
}

.btn.primary:hover {
    background: linear-gradient(135deg, #005d8c 0%, #0077b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.3);
}

.btn.secondary {
    border: 2px solid #0077b6;
    color: #0077b6;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.1);
}

.btn.secondary:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border-color: #005d8c;
    color: #005d8c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
}

.btn.secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 119, 182, 0.15);
}

.hero-card {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-card ul {
    list-style: none;
    margin-top: 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-card li {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.95rem;
}

.hero-card li:last-child {
    border-bottom: none;
}

.schedule-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: capitalize;
}

.schedule-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.detail-label {
    font-weight: 600;
    color: #0f172a;
    position: relative;
    padding-right: 0.75rem;
}

.detail-label::after {
    content: ":";
    position: absolute;
    right: 0;
    color: #94a3b8;
}

.detail-value {
    flex: 1;
    text-align: right;
    color: #475569;
    font-weight: 500;
}

.schedule-detail-row.single {
    justify-content: flex-end;
}

.schedule-detail-row.single .detail-single-value {
    font-weight: 600;
    color: #0f172a;
    text-align: right;
}

.hero-card li span br {
    content: "";
    display: block;
    margin-bottom: 0.2rem;
}

.note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.section {
    padding: 3rem clamp(1.5rem, 4vw, 6rem);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.highlight {
    background: #fff5e6;
    border-color: #ffd8a8;
}

.feature-list {
    margin-top: 1rem;
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--muted);
}

.program-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.cta {
    background: #0b3d91;
    color: white;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta .btn {
    border-color: white;
    color: #0b3d91;
    background: white;
}

.form-page-hero {
    background: linear-gradient(135deg, #0b3d91, #072863);
    color: white;
    padding: 3rem clamp(1.5rem, 4vw, 6rem);
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
}

.form-page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.5rem 0 1rem;
    color: white;
}

.form-page-hero p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 520px;
}

.form-hero-content {
    max-width: 620px;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-brand img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-school {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.hero-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-page-hero .btn.secondary {
    border-color: rgba(255, 255, 255, 0.7);
    color: white;
    background: transparent;
}

.form-page-hero .btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.form-section {
    background: #eef4ff;
}

.form-section-block {
    margin-top: 2rem;
}

.form-section-block h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.form-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 960px;
    margin: 0 auto;
    border: 1px solid var(--border);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.form-card h2 {
    margin-bottom: 0.5rem;
}

.form-card p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group.full {
    grid-column: 1 / -1;
}

select,
textarea {
    width: 100%;
    border-radius: 0.6rem;
    border: 1px solid var(--border);
    padding: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
}

textarea {
    resize: vertical;
}

.success-message {
    display: none;
    background: #ecfdf3;
    color: #065f46;
    border: 1px solid #34d399;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    margin-bottom: 1rem;
}

.success-message.error {
    background: #fff5f5;
    color: #c53030;
    border-color: #feb2b2;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background: #0f172a;
    color: white;
}

/* Auth pages */
.auth-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #bfd7ff, #e3f2fd);
    padding: 1.5rem;
}

.auth-card {
    width: min(420px, 100%);
    background: white;
    border-radius: 1.2rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
    padding: 2rem;
}

.auth-card h1 {
    margin-bottom: 0.5rem;
}

.auth-card p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0f172a;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
    color: #1e293b;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
    transform: translateY(-1px);
}

input:hover, select:hover, textarea:hover {
    border-color: #cbd5e1;
}

.info-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 3px solid #0077b6;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.error {
    background: #fdecea;
    color: #b71c1c;
    padding: 0.7rem;
    border-radius: 0.6rem;
    margin-bottom: 1rem;
    display: none;
}

.data-layout {
    min-height: 100vh;
    background: radial-gradient(circle at top, #e0edff, #f5f7fb 40%, #f8fbff 100%);
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem clamp(1rem, 4vw, 4rem);
    background: linear-gradient(135deg, #0b3d91, #3a86ff);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.data-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 60%);
    pointer-events: none;
}

.data-header h1 {
    color: white;
}

.data-header .badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.data-header .btn.secondary {
    border-color: rgba(255, 255, 255, 0.7);
    color: #0b3d91;
    background: white;
}

.data-header .btn.secondary:hover {
    background: #e2edff;
}

.dashboard-grid {
    padding: 2rem clamp(1rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.75rem;
    border: 1px solid #e6ecff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.config-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.1), transparent 60%);
    pointer-events: none;
}

.config-card h2 {
    margin-bottom: 0.4rem;
}

.config-card .info-text {
    margin-top: 0;
    color: #64748b;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid #0077b6;
    border-radius: 0.5rem;
    padding: 0.875rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.config-card .btn.secondary {
    border-color: #2563eb;
    color: #0b3d91;
    background: rgba(37, 99, 235, 0.08);
}

.config-card .btn.secondary:hover {
    background: rgba(37, 99, 235, 0.15);
}

.config-card .btn.primary {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
    font-size: 1rem;
    padding: 1rem 2rem;
}

.config-card .btn.primary:hover {
    background: linear-gradient(135deg, #005d8c 0%, #0077b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.config-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.config-card-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #1e293b;
    font-weight: 700;
}

.config-card-header .btn.secondary {
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.15);
}

.config-form .form-grid {
    margin-bottom: 1rem;
}

.schedule-section {
    margin: 1rem 0;
}

.schedule-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.upload-group input[type="file"] {
    padding: 0.5rem 0;
}

.upload-preview {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

.link-button {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 0.3rem;
}

.table-wrapper {
    padding: 2rem clamp(1rem, 4vw, 4rem);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
}

th, td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    background: #edf2ff;
    color: #1f3364;
    font-weight: 700;
}

.empty-row td {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--muted);
}

.form-note {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.admin-link {
    display: none;
}

@media (max-width: 600px) {
    .hero {
        padding: 3rem 1rem;
        grid-template-columns: 1fr;
        background-position: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .dashboard-grid {
        padding: 1.5rem 1rem;
    }

    th, td {
        font-size: 0.85rem;
    }
}

/* Modal Pencarian */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 220mm;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    box-sizing: border-box;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: var(--secondary);
    color: var(--primary-dark);
}

.search-form {
    padding: 2rem;
}

.search-result {
    padding: 0 2rem 2rem;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.search-loading {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

.search-not-found {
    text-align: center;
    padding: 2rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.8rem;
    color: #991b1b;
}

.search-not-found p {
    margin: 0.5rem 0;
}

.search-error {
    text-align: center;
    padding: 1.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.8rem;
    color: #991b1b;
}

.search-found h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.result-card {
    background: var(--secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.result-section {
    margin-bottom: 1.5rem;
}

.result-section:last-of-type {
    margin-bottom: 0;
}

.result-section h4 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.result-grid {
    display: grid;
    gap: 0.75rem;
}

.result-grid > div {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.result-grid strong {
    min-width: 140px;
    color: var(--text);
}

.result-grid span {
    color: var(--muted);
    flex: 1;
}

.result-meta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
        max-width: calc(100vw - 2rem);
        overflow-x: hidden;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .search-form {
        padding: 1.5rem;
    }

.search-result {
    padding: 0 1.5rem 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.search-result .bukti-pendaftaran {
    margin: 0;
    box-shadow: none;
    border: none;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.search-loading {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

.search-error {
    text-align: center;
    padding: 2rem;
    color: #dc2626;
    background: #fee2e2;
    border-radius: 0.5rem;
    overflow-y: auto;
}

.search-result .bukti-pendaftaran {
    margin: 0;
    box-shadow: none;
    border: none;
}

.search-loading {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

.search-error {
    text-align: center;
    padding: 2rem;
    color: #dc2626;
    background: #fee2e2;
    border-radius: 0.5rem;
}

    .result-grid strong {
        min-width: 100px;
        font-size: 0.9rem;
    }
}

/* Bukti Pendaftaran */
.bukti-pendaftaran {
    background: white;
    border-radius: 0;
    padding: 0.3rem;
    max-width: 210mm;
    width: 210mm;
    height: 297mm;
    max-height: 297mm;
    min-height: 297mm;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    font-size: 9px;
    line-height: 0.9;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    word-wrap: break-word;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Admin Dashboard Layout */
.data-layout {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: #1e293b;
}

.data-layout .admin-main,
.data-layout .config-card,
.data-layout .form-group,
.data-layout label,
.data-layout input,
.data-layout textarea,
.data-layout select,
.data-layout p,
.data-layout span,
.data-layout div {
    color: #1e293b !important;
}

.data-layout h1,
.data-layout h2,
.data-layout h3 {
    color: #0f172a !important;
}

.data-layout .info-text {
    color: #64748b !important;
}

.data-header {
    background: linear-gradient(135deg, #0077b6 0%, #005d8c 100%);
    padding: 1.5rem 2rem;
    border-bottom: 3px solid #004d73;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
    color: white;
}

.data-header .badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.data-header h1 {
    color: white;
    margin: 0.5rem 0 0 0;
    font-size: 1.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-role-badge {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-role-badge::before {
    content: "👤";
    font-size: 1rem;
}

.data-header .btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.data-header .btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.admin-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* Admin Sidebar */
.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-right: 2px solid #e2e8f0;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    color: #475569;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.nav-item:hover {
    background: linear-gradient(90deg, #f0f4ff 0%, #e8f0fe 100%);
    color: var(--primary);
    border-color: #dbeafe;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.1);
}

.nav-item:hover::before {
    height: 60%;
}

.nav-item.active {
    background: linear-gradient(135deg, #0077b6 0%, #005d8c 100%);
    color: white;
    border-color: #004d73;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
    transform: translateX(4px);
}

.nav-item.active::before {
    height: 80%;
    background: rgba(255, 255, 255, 0.3);
}

.nav-item.active .nav-icon {
    font-size: 1.2rem;
}

.nav-icon {
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 119, 182, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    background: rgba(0, 119, 182, 0.15);
    transform: scale(1.1);
}

.nav-item.active .nav-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.15);
}

.nav-text {
    flex: 1;
}

/* Admin Main Content */
.admin-main {
    flex: 1;
    padding: 2.5rem;
    position: relative;
    background: transparent;
    color: #1e293b;
}

.admin-main h2,
.admin-main h3 {
    color: #0f172a !important;
}

.admin-main p,
.admin-main label,
.admin-main input,
.admin-main textarea,
.admin-main select,
.admin-main span,
.admin-main div {
    color: #1e293b !important;
}

.admin-main .info-text {
    color: #64748b !important;
}

.admin-main input::placeholder,
.admin-main textarea::placeholder {
    color: #94a3b8 !important;
}

.admin-page {
    display: none;
}

.admin-page.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.config-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #1e293b;
}

.config-card h2,
.config-card h3 {
    color: #0f172a !important;
}

.config-card p,
.config-card label,
.config-card input,
.config-card textarea,
.config-card select,
.config-card span,
.config-card div {
    color: #1e293b !important;
}

.config-card .info-text {
    color: #64748b !important;
}

.config-card input::placeholder,
.config-card textarea::placeholder {
    color: #94a3b8 !important;
}

.config-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0077b6 0%, #00b4d8 100%);
}

.config-card:hover {
    box-shadow: 0 8px 30px rgba(0, 119, 182, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.config-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.config-card-header h2 {
    color: #0f172a !important;
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
}

.config-card-header p,
.config-card-header .info-text {
    color: #475569 !important;
    font-size: 0.9rem;
    margin: 0;
}

.config-card-header button {
    color: #0077b6 !important;
}

.config-card h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.75rem;
    color: #0f172a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.config-card h3 {
    color: #0f172a;
    font-weight: 700;
}

.config-card p {
    color: #1e293b;
}

.config-card h2::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: linear-gradient(180deg, #0077b6 0%, #00b4d8 100%);
    border-radius: 2px;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    z-index: 10000;
    display: none;
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
    max-width: 500px;
}

.notification-toast.show {
    display: block;
}

.notification-toast.error {
    background: #ef4444;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.notification-toast.warning {
    background: #f59e0b;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.5rem;
    font-weight: bold;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-toast.hide {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    pointer-events: none;
}

/* Success Message (Old - keep for compatibility) */
.success-message {
    display: none;
    padding: 1rem 1.5rem;
    background: #d1fae5;
    color: #065f46;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #6ee7b7;
    font-weight: 500;
}

.success-message.show {
    display: block;
}

/* Table Wrapper */
.table-wrapper {
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 2px solid #0077b6;
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: #0f172a;
    padding: 0;
    margin-top: 1.5rem;
}

.table-wrapper * {
    color: #0f172a !important;
}

/* Override untuk header table - hitam */
.table-wrapper thead *,
.table-wrapper th {
    color: #0f172a !important;
}

/* Override untuk data table - hitam */
.table-wrapper tbody *,
.table-wrapper td {
    color: #0f172a !important;
}

.table-wrapper table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    margin: 0;
}

.table-wrapper thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #0077b6;
}

.table-wrapper th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 700;
    color: #0f172a !important;
    border-bottom: 2px solid #0077b6;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-wrapper th:first-child {
    border-top-left-radius: 0.75rem;
}

.table-wrapper th:last-child {
    border-top-right-radius: 0.75rem;
}

.table-wrapper tbody tr {
    transition: all 0.2s ease;
}

.table-wrapper td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a !important;
    font-weight: 500;
}

.table-wrapper tbody tr:hover {
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.1);
}

.table-wrapper tbody tr:last-child td:first-child {
    border-bottom-left-radius: 0.75rem;
}

.table-wrapper tbody tr:last-child td:last-child {
    border-bottom-right-radius: 0.75rem;
}

.empty-row td {
    text-align: center;
    color: #64748b !important;
    padding: 3rem 2rem;
    font-size: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    font-weight: 500;
}

.empty-row td::before {
    content: '📋';
    display: block;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.bukti-pendaftaran * {
    box-sizing: border-box;
    max-width: 100%;
}

.bukti-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.bukti-header-kop {
    margin-bottom: 0.2rem;
    padding-bottom: 0.15rem;
    width: 100%;
    flex-shrink: 0;
}

.bukti-kop-image {
    width: 100%;
    max-width: 100%;
    max-height: 40mm;
    height: auto;
    display: block;
    margin-bottom: 0.15rem;
    object-fit: contain;
}

.bukti-logo {
    flex-shrink: 0;
}

.bukti-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    background: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bukti-kop h2 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-dark);
    font-size: 1.3rem;
}

.bukti-kop p {
    margin: 0.25rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.bukti-divider {
    height: 1px;
    background: linear-gradient(to right, var(--primary), transparent);
    margin: 0.2rem 0;
    flex-shrink: 0;
}

.bukti-title {
    text-align: center;
    margin: 0.3rem 0 0.25rem 0;
    flex-shrink: 0;
}

.bukti-title h1 {
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 0.1rem;
    line-height: 1.15;
    font-weight: 700;
}

.bukti-title h1:first-of-type {
    margin-bottom: 0.3rem;
}

.bukti-title h1:last-of-type {
    margin-bottom: 0.15rem;
}

.bukti-title p {
    color: var(--muted);
    font-size: 0.65rem;
    margin-bottom: 0.15rem;
}

.bukti-info-inline {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.65rem;
    margin-top: 0.15rem;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
}

.bukti-info-inline span {
    color: var(--text);
}

.bukti-info-inline .highlight {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
}

.bukti-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.3rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.bukti-section {
    margin-bottom: 0.4rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.bukti-section-left {
    padding-right: 0.25rem;
    width: 100%;
    max-width: 100%;
}

.bukti-section-right {
    padding-left: 0.25rem;
    border-left: 1px solid var(--border);
    width: 100%;
    max-width: 100%;
}

.bukti-section-title {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid var(--primary);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    background-color: #f8f9fa;
    text-transform: uppercase;
    flex-shrink: 0;
    text-align: center;
}

.bukti-form-table {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    margin-top: 0.5rem;
    flex: 1;
    min-height: 0;
    table-layout: fixed;
    word-wrap: break-word;
}

.bukti-form-table tr {
    border: 2px solid #9ca3af;
    border-radius: 5px;
    line-height: 3.5;
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 4rem;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bukti-form-table td {
    padding: 3.5rem 0.5rem;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: none;
    line-height: 3.5;
    margin: 0;
    height: auto;
    overflow: visible;
}

.bukti-form-table .form-label {
    width: 45%;
    font-weight: 700;
    color: #000;
    font-size: 0.75rem;
    word-wrap: break-word;
    line-height: 1.2;
    padding: 0;
    margin: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.bukti-form-table .form-colon {
    width: 3%;
    text-align: center;
    color: var(--text);
    font-weight: 600;
    font-size: 0.68rem;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.bukti-form-table .form-value {
    width: 52%;
    color: var(--text);
    border-bottom: 1px dotted #ccc;
    min-height: 0;
    height: auto;
    font-size: 0.68rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.bukti-catatan {
    background: #f9fafb;
    padding: 0.6rem;
    border-radius: 0.4rem;
    border-left: 3px solid var(--primary);
    margin-top: 0.3rem;
}

.bukti-catatan p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.85rem;
}

.bukti-catatan-inline {
    margin-top: 0.4rem;
    padding-top: 0.3rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.bukti-catatan-title {
    color: var(--primary-dark);
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.bukti-catatan-inline p {
    margin: 0;
    line-height: 0.9;
    font-size: 0.63rem;
    color: var(--text);
}

.bukti-signature-section {
    margin-top: auto;
    padding-top: 0.4rem;
    border-top: 1.5px solid var(--border);
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
}

.bukti-signature-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.bukti-signature-location {
    text-align: center;
    margin-bottom: 0.5rem;
}

.bukti-signature-location p {
    margin: 0;
    font-size: 0.65rem;
    color: var(--text);
}

.bukti-signature-box {
    text-align: center;
}

.bukti-signature-box p {
    margin: 0.1rem 0;
    font-size: 0.65rem;
}

.signature-space {
    margin-top: 0.6rem;
}

.signature-space p {
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 0.63rem;
    color: var(--text);
    line-height: 0.9;
}

.signature-line {
    width: 130px;
    height: 1px;
    background: #000;
    margin: 6rem auto 0;
}

.bukti-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Admin Data Filters */
.filter-section {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 0.75rem;
    border: 2px solid #0077b6;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.filter-wrapper {
    position: relative;
}

.filter-input {
    padding: 0.4rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.8rem;
    width: 140px;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.2s ease;
}

.filter-input::placeholder {
    color: #9ca3af;
    font-size: 0.75rem;
}

.filter-input:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.1);
    background: #ffffff;
}

.filter-date {
    width: 150px;
    cursor: pointer;
}

.filter-date::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    filter: invert(0.4);
}

.filter-date::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.btn-search {
    padding: 0.4rem 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid #0077b6;
    background: linear-gradient(135deg, #0077b6 0%, #005d8c 100%);
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 32px;
    box-shadow: 0 2px 4px rgba(0, 119, 182, 0.2);
}

.btn-search:hover {
    background: linear-gradient(135deg, #005d8c 0%, #004d73 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 119, 182, 0.3);
}

.btn-search:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 119, 182, 0.2);
}

.search-icon {
    font-size: 0.9rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .filter-section {
        padding: 0.75rem;
    }

    .filter-group {
        justify-content: stretch;
    }

    .filter-input {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* Status Badge untuk Bendahara */
.status-sudah {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.status-belum {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.btn-edit-status {
    padding: 0.4rem 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid #0077b6;
    background: linear-gradient(135deg, #0077b6 0%, #005d8c 100%);
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 119, 182, 0.2);
}

.btn-edit-status:hover {
    background: linear-gradient(135deg, #005d8c 0%, #004d73 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 119, 182, 0.3);
}

/* Action buttons di tabel bendahara */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.8rem;
    border-radius: 0.55rem;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.btn-action .icon {
    font-size: 1rem;
}

.btn-verif {
    background: linear-gradient(135deg, #ffd166 0%, #f4a261 100%);
    color: #4a2c00;
    border-color: #f4a261;
}

.btn-verif:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(244, 162, 97, 0.35);
}

.btn-status-toggle {
    background: linear-gradient(135deg, #4dd0e1 0%, #219ebc 100%);
    color: #04354a;
    border-color: #219ebc;
}

.btn-status-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(33, 158, 188, 0.35);
}

/* Container untuk bukti pendaftaran */
#buktiContainer,
.bukti-container {
    width: 100%;
    max-width: 210mm;
    margin: 0 auto;
    padding: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

#buktiContainer .bukti-pendaftaran,
.bukti-container .bukti-pendaftaran {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

@media print {
    .bukti-pendaftaran {
        box-shadow: none;
        border: none;
        padding: 0.3rem;
        max-width: 210mm;
        width: 210mm;
        height: 297mm;
        min-height: 297mm;
        max-height: 297mm;
        page-break-after: avoid;
        page-break-inside: avoid;
        border-radius: 0;
        overflow: hidden;
    }
    
    .bukti-content-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    
    .bukti-section-right {
        border-left: 1px solid var(--border);
    }
    
    .bukti-actions {
        display: none;
    }
    
    body {
        background: white;
        margin: 0;
        padding: 0;
    }
    
    @page {
        size: A4;
        margin: 0;
    }
}

@media (max-width: 600px) {
    .bukti-header {
        flex-direction: column;
        text-align: center;
    }
    
    .bukti-footer {
        grid-template-columns: 1fr;
    }
    
    .bukti-signature {
        text-align: left;
    }
    
    .bukti-table td:first-child {
        width: 120px;
        font-size: 0.9rem;
    }
}

/* Responsive Admin Dashboard */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .nav-item {
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .admin-main {
        padding: 1rem;
    }
    
    .notification-toast {
        right: 1rem;
        left: 1rem;
        min-width: auto;
        max-width: none;
    }
    
    .data-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Modal Edit Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0077b6 0%, #005d8c 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0077b6;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.form-section-title:first-child {
    margin-top: 0;
}

.modal-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

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

.modal-form .form-group.full {
    grid-column: 1 / -1;
}

.modal-form label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #1e293b;
    background: white;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.modal-form textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
    margin-top: 1rem;
}

.modal-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.modal-actions .btn.secondary {
    background: #e2e8f0;
    color: #475569;
}

.modal-actions .btn.secondary:hover {
    background: #cbd5e1;
}

.modal-actions .btn.primary {
    background: linear-gradient(135deg, #0077b6 0%, #005d8c 100%);
    color: white;
}

.modal-actions .btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

/* Edit Button in Table */
.btn-edit {
    background: linear-gradient(135deg, #0077b6 0%, #005d8c 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.btn-edit:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-form {
        padding: 1.5rem;
    }
    
    .modal-form .form-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

