/* ============================================
   RESET & VARIABEL
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-teal: #1B9C9C;
    --primary-orange: #FDA500;
    --teal-dark: #0F7A7A;
    --orange-dark: #D48C00;
    --white: #ffffff;
    --light-bg: #f4f9f9;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    --radius: 16px;
}

body {
    background: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background: var(--primary-teal);
    color: white;
    padding: 16px 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.logo-area i {
    font-size: 32px;
    color: var(--primary-orange);
}

.header-right small {
    font-weight: 300;
    opacity: 0.9;
    font-size: 14px;
}

/* ============================================
   MAIN CONTENT (pusat)
   ============================================ */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--primary-teal);
    color: white;
    text-align: center;
    padding: 18px 20px;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   TOMBOL BUNDAR BERANDA (3 tombol)
   ============================================ */
.button-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 30px 0;
}

.btn-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 15px;
    text-align: center;
}

.btn-circle i {
    font-size: 48px;
    margin-bottom: 6px;
}

.btn-circle.mhs {
    background: var(--primary-teal);
    color: white;
}
.btn-circle.mhs i {
    color: var(--primary-orange);
}

.btn-circle.jurusan {
    background: var(--primary-orange);
    color: white;
}
.btn-circle.jurusan i {
    color: var(--primary-teal);
}

.btn-circle.admin {
    background: var(--primary-teal);
    color: white;
    border: 4px solid var(--primary-orange);
}
.btn-circle.admin i {
    color: var(--primary-orange);
}

.btn-circle:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}
.btn-circle:active {
    transform: scale(0.96);
}

/* ============================================
   OVERLAY & POPUP (TINGGI MENYESUAIKAN)
   ============================================ */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.overlay.active {
    display: flex;
}

/* Popup default: tinggi menyesuaikan konten */
.popup-box {
    width: 60vw;
    max-width: 700px;
    min-width: 320px;
    height: auto;
    max-height: 80vh;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 30px 35px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.25s ease;
    overflow-y: auto;
}

/* Popup besar (untuk tambah seminar) */
.popup-large {
    width: 70vw;
    max-width: 1000px;
    min-width: 320px;
    max-height: 85vh;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary-orange);
    padding-bottom: 12px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.popup-header h2 {
    font-size: 22px;
    color: var(--primary-teal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-header h2 i {
    color: var(--primary-orange);
}

.btn-close-popup {
    background: none;
    border: none;
    font-size: 36px;
    color: #888;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
    padding: 0 10px;
}

.btn-close-popup:hover {
    color: #d32f2f;
}

.popup-body {
    flex: 0 1 auto;
    overflow-y: auto;
    padding: 2px 0;
}

/* ============================================
   FORM DI DALAM POPUP
   ============================================ */
.form-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.form-group {
    flex: 1 1 100%;
    margin-bottom: 12px;
}

.form-group.half {
    flex: 1 1 calc(50% - 9px);
    min-width: 180px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 50px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 156, 156, 0.15);
}

.required {
    color: #d32f2f;
    font-weight: 700;
    margin-left: 2px;
}

/* SK Box */
.sk-box {
    background: #f5fafa;
    padding: 14px 18px;
    border-radius: 10px;
    margin-top: 10px;
    border-left: 4px solid var(--primary-teal);
}

.sk-box.orange {
    background: #fdf5e6;
    border-left-color: var(--primary-orange);
}

.sk-box h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tombol aksi di popup */
.popup-actions {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 2px solid #eee;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.popup-actions button {
    padding: 10px 28px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    flex: 1 1 auto;
}

.btn-clear {
    background: #eee;
    color: #555;
}
.btn-clear:hover {
    background: #ddd;
}

.btn-submit {
    background: var(--primary-orange);
    color: white;
}
.btn-submit:hover {
    background: var(--orange-dark);
    box-shadow: 0 4px 12px rgba(253, 165, 0, 0.4);
}

#seminarMessage,
#profilMessage {
    margin-top: 14px;
    font-weight: 600;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* ============================================
   SIDEBAR STICKY KIRI (Admin)
   ============================================ */
.sidebar-sticky {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 50;
}

.sidebar-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.sidebar-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.sidebar-btn .tooltip {
    display: none;
    position: absolute;
    left: 70px;
    background: #333;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    font-weight: 500;
}

.sidebar-btn:hover .tooltip {
    display: block;
}

.sidebar-btn.add {
    background: var(--primary-orange);
}
.sidebar-btn.edit {
    background: var(--primary-teal);
}
.sidebar-btn.logout {
    background: #d32f2f;
}

.sidebar-btn i {
    font-size: 24px;
}

/* ============================================
   DASHBOARD ADMIN
   ============================================ */
.dashboard-wrapper {
    margin-left: 90px;
    max-width: 1000px;
    width: 100%;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    background: var(--primary-teal);
    color: white;
    padding: 16px 24px;
    border-bottom: 4px solid var(--primary-orange);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.card-header i {
    font-size: 22px;
    color: var(--primary-orange);
}

.card-body {
    padding: 20px 24px;
}

.card-body p {
    margin: 6px 0;
    font-size: 15px;
}

.card-body ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.card-body ul li {
    margin-bottom: 4px;
}

/* ============================================
   TABEL SEMINAR
   ============================================ */
.table-responsive {
    overflow-x: auto;
    margin-top: 6px;
}

.table-seminar {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table-seminar th {
    background: #f0f7f7;
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    color: #1a3a3a;
    border-bottom: 2px solid var(--primary-teal);
}

.table-seminar td {
    padding: 12px 14px;
    border-bottom: 1px solid #e8ecec;
    vertical-align: middle;
}

.table-seminar tr:hover {
    background: #fafcfc;
}

.badge {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 3px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.btn-edit-small {
    background: var(--primary-teal);
    color: white;
    border: none;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-edit-small:hover {
    background: var(--teal-dark);
}

/* ============================================
   AUTOCOMPLETE DOSEN
   ============================================ */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    background: white;
    border: 2px solid var(--primary-teal);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 180px;
    overflow-y: auto;
    width: 100%;
    z-index: 10;
    display: none;
}

.autocomplete-list .item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.autocomplete-list .item:hover {
    background: #f0f7f7;
}

/* ============================================
   RESPONSIF
   ============================================ */
@media (max-width: 768px) {
    .sidebar-sticky {
        left: 10px;
        gap: 12px;
    }
    .sidebar-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .sidebar-btn i {
        font-size: 18px;
    }
    .dashboard-wrapper {
        margin-left: 65px;
    }
    .btn-circle {
        width: 140px;
        height: 140px;
        font-size: 16px;
    }
    .btn-circle i {
        font-size: 36px;
    }
    .button-grid {
        gap: 30px;
    }
    .popup-box {
        width: 85vw;
        padding: 18px 20px;
        max-height: 85vh;
    }
    .popup-large {
        width: 90vw;
        max-height: 88vh;
    }
    .form-group.half {
        flex: 1 1 100%;
    }
    .sidebar-btn .tooltip {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .sidebar-sticky {
        left: 6px;
        gap: 10px;
    }
    .sidebar-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .sidebar-btn i {
        font-size: 14px;
    }
    .dashboard-wrapper {
        margin-left: 50px;
    }
    .btn-circle {
        width: 110px;
        height: 110px;
        font-size: 13px;
    }
    .btn-circle i {
        font-size: 28px;
    }
    .button-grid {
        gap: 20px;
    }
    .popup-box {
        width: 92vw;
        padding: 12px 14px;
        max-height: 90vh;
        min-width: unset;
    }
    .popup-large {
        width: 95vw;
        max-height: 92vh;
    }
    .card-header h3 {
        font-size: 17px;
    }
    .card-body {
        padding: 14px 16px;
    }
}