/* ============================================
   E-Lapor PKL - SMKN 4 Tarakan
   Theme: Light Gradient Purple
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #8b5cf6;
    --primary-dark: #6d28d9;
    --primary-light: #c084fc;
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-200: #ddd6fe;
    --primary-300: #c4b5fd;
    --primary-400: #a78bfa;
    --primary-500: #8b5cf6;
    --primary-600: #7c3aed;
    --primary-700: #6d28d9;
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --gradient-light: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --text-dark: #1e1b4b;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    --bg-body: #f5f3ff;
    --white: #ffffff;
    --shadow: 0 8px 30px rgba(139, 92, 246, 0.05), 0 2px 8px rgba(139, 92, 246, 0.03);
    --shadow-lg: 0 16px 40px rgba(139, 92, 246, 0.09), 0 8px 12px rgba(139, 92, 246, 0.04);
    --shadow-xl: 0 24px 50px rgba(139, 92, 246, 0.12);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family:'Poppins',sans-serif;
    background: var(--gradient-light);
    color: var(--text-dark);
    min-height:100vh;
    line-height:1.6;
}

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

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.12);
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.navbar-brand img {
    height: 42px;
    width: 42px;
    object-fit: contain;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-menu a {
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--text-secondary);
}

.navbar-menu a:hover, .navbar-menu a.active {
    background: var(--primary-50);
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    font-family:'Poppins',sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(108,99,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108,99,255,0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary-200);
}

.btn-secondary:hover {
    background: var(--primary-50);
    border-color: var(--primary);
}

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

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ===== LOGIN PAGE ===== */
.login-container {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

.login-illustration {
    flex: 1;
    background: var(--gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-illustration::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.login-illustration::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}

.login-illustration img {
    max-width: 80%;
    max-height: 400px;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

.login-illustration h2 {
    color: white;
    font-size: 1.8rem;
    margin-top: 2rem;
    z-index: 1;
    text-align: center;
}

.login-illustration p {
    color: rgba(255,255,255,0.8);
    z-index: 1;
    text-align: center;
    max-width: 400px;
}

.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--white);
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
}

.login-card .logo-top {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-card .logo-top img {
    height: 70px;
    width: 70px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.login-card .logo-top h1 {
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-card .logo-top p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.login-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.login-card .subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i, .input-icon-wrap .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.input-icon-wrap input, 
.input-icon-wrap select {
    padding-left: 44px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--primary-100);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--primary-50);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.form-control::placeholder { color: var(--text-light); }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-text {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.card-body { padding: 1.5rem; }
.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--primary-100);
    background: var(--primary-50);
}

/* ===== REPORT CARD ===== */
.report-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.report-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.report-card .card-img {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.report-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-card .card-img .pdf-icon {
    font-size: 3rem;
    color: rgba(255,255,255,0.9);
}

.report-card .badge-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-published { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-draft { background: #e5e7eb; color: #374151; }
.badge-rejected { background: #fecaca; color: #991b1b; }

.report-card .card-content {
    padding: 1.2rem;
}

.report-card .student-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.report-card .student-info {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.report-card .student-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 12px;
}

.report-card .report-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.report-card .nilai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    z-index: 1;
    position: relative;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    z-index: 1;
    position: relative;
}

.hero .search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero .search-box input {
    width: 100%;
    padding: 16px 24px 16px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family:'Poppins',sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.hero .search-box input:focus {
    outline: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.hero .search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

/* ===== FILTER TABS ===== */
.filter-tabs {
    display: flex;
    gap: 8px;
    padding: 1.5rem 2rem;
    overflow-x: auto;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--primary-200);
    background: var(--white);
    color: var(--text-secondary);
    font-family:'Poppins',sans-serif;
}

.filter-tab:hover, .filter-tab.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(108,99,255,0.3);
}

/* ===== GRID ===== */
.grid {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== SIDEBAR LAYOUT ===== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    background: var(--white);
    border-right: 1px solid var(--primary-100);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 900;
    overflow-y: auto;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--primary-100);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.sidebar-brand img { height: 45px; width: 45px; object-fit: contain; }

.sidebar-brand .brand-text h3 {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

.sidebar-brand .brand-text small {
    font-size: 0.72rem;
    color: var(--text-light);
}

.sidebar-user {
    padding: 1rem 1.5rem;
    margin: 0 1rem 1rem;
    background: var(--gradient-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-200);
}

.sidebar-user .user-info h4 { font-size: 0.85rem; font-weight: 600; }
.sidebar-user .user-info small { font-size: 0.72rem; color: var(--text-secondary); }

.sidebar-menu { list-style: none; padding: 0 0.8rem; }

.sidebar-menu .menu-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    padding: 1rem 1rem 0.5rem;
    font-weight: 600;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    margin-bottom: 2px;
}

.sidebar-menu a:hover { background: var(--primary-50); color: var(--primary); }
.sidebar-menu a.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.sidebar-menu a .icon { font-size: 1.1rem; width: 24px; text-align: center; }

.main-content {
    flex: 1;
    margin-left: 270px;
    padding: 2rem;
    min-height: 100vh;
}

.main-content .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.main-content .page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

.main-content .page-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card .stat-icon.purple { background: var(--gradient); }
.stat-card .stat-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.stat-card .stat-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-card .stat-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

.stat-card .stat-info h3 { font-size: 1.6rem; font-weight: 700; }
.stat-card .stat-info p { font-size: 0.82rem; color: var(--text-secondary); }

/* ===== TABLE ===== */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
}

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

table th {
    background: var(--primary-50);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 12px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--primary-100);
}

table tr:hover td { background: var(--primary-50); }

table .user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

table .user-cell img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

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

.modal-header h3 { font-size: 1.2rem; font-weight: 700; }

.modal-close {
    width: 36px; height: 36px;
    border: none; background: var(--primary-50);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover { background: var(--primary-100); }

.modal-body { padding: 1.5rem; }
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--primary-100);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== PDF VIEWER ===== */
.pdf-viewer-container {
    position: relative;
    width: 100%;
    height: 85vh;
    background: #1e1b4b;
    border-radius: var(--radius);
    overflow: hidden;
}

.pdf-viewer-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-viewer-container .watermark {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.07;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    transform: rotate(-30deg);
    user-select: none;
}

.pdf-viewer-container .overlay-protection {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 60px;
    z-index: 11;
}

/* ===== DOCUMENTATION GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 0.82rem;
}

/* ===== PROFILE ===== */
.profile-header {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
    z-index: 1;
}

.profile-info { z-index: 1; }
.profile-info h2 { font-size: 1.5rem; font-weight: 700; }
.profile-info p { opacity: 0.9; font-size: 0.9rem; }

/* ===== FILE UPLOAD ===== */
.file-upload-area {
    border: 2px dashed var(--primary-300);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary-50);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-100);
}

.file-upload-area .upload-icon {
    font-size: 2.5rem;
    color: var(--primary-300);
    margin-bottom: 0.5rem;
}

.file-upload-area p { color: var(--text-secondary); font-size: 0.88rem; }
.file-upload-area .file-name {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand img { height: 50px; margin-bottom: 1rem; }
.footer-brand h3 { color: white; font-size: 1.2rem; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; }

.footer h4 { color: white; margin-bottom: 1rem; font-size: 0.95rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul li a { font-size: 0.85rem; transition: var(--transition); }
.footer ul li a:hover { color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.82rem;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--primary-200);
}

.pagination a:hover { background: var(--primary-50); }
.pagination .active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.empty-state p { max-width: 400px; margin: 0 auto; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }

.animate-fade { animation: fadeIn 0.5s ease; }
.animate-slide { animation: slideUp 0.5s ease; }

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .login-illustration { display: none; }
    .login-form-side { padding: 1rem; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.9rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .hamburger { display: flex; }
    .navbar-menu { display: none; }
    .navbar-menu.open { 
        display: flex; 
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }
    .profile-header { flex-direction: column; text-align: center; }
    .stat-card { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .navbar { padding: 0 1rem; }
    .grid { padding: 1rem; }
    .main-content { padding: 1rem; }
    .filter-tabs { padding: 1rem; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary-50); }
::-webkit-scrollbar-thumb { background: var(--primary-200); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-300); }

/* ===== PRINT PROTECTION ===== */
@media print {
    body { display: none !important; }
}

/* ===== NO SELECT FOR PROTECTED CONTENT ===== */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ===== TABS ===== */
.tabs { display:flex; gap:4px; border-bottom:2px solid var(--primary-100); margin-bottom:1.5rem; }
.tab-btn {
    padding:10px 20px;
    font-family:'Poppins',sans-serif;
    font-size:0.88rem;
    font-weight:500;
    border:none;
    background:none;
    cursor:pointer;
    color:var(--text-secondary);
    border-bottom:3px solid transparent;
    margin-bottom:-2px;
    transition:var(--transition);
}
.tab-btn:hover { color:var(--primary); }
.tab-btn.active { color:var(--primary); border-bottom-color:var(--primary); font-weight:600; }
.tab-content { display:none; animation:fadeIn 0.3s ease; }
.tab-content.active { display:block; }
