/* --- PREMIUM FONTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4e54c8;       /* Deep Purple/Blue */
    --secondary: #8f94fb;     /* Lighter Purple */
    --accent: #ff6b6b;        /* Coral Red */
    --dark: #2d3436;          /* Dark Grey */
    --light: #f5f6fa;         /* Light Grey BG */
    --white: #ffffff;
    --success: #00b894;       /* Green */
    --glass: rgba(255, 255, 255, 0.90);
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #4e54c8;
    --secondary: #8f94fb;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --bg: #f1f2f6;
    --shadow: 0 8px 20px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { background: var(--bg); color: var(--text-dark); overflow-x: hidden; }

/* --- 1. CLEAN HEADER (No Buttons, Only Menu) --- */
.app-header {
    background: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}
.brand { font-size: 1.5rem; font-weight: 700; color: var(--primary); letter-spacing: 0.5px; }
.hamburger { font-size: 1.6rem; color: #333; cursor: pointer; padding: 5px; }

/* --- 2. SIDE MENU (DRAWER) --- */
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1001; display: none;
}
.side-drawer {
    position: fixed; top: 0; left: -280px; width: 260px; height: 100%;
    background: white; z-index: 1002; transition: 0.3s;
    display: flex; flex-direction: column; padding: 20px;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
}
.side-drawer.active { left: 0; }
.close-btn { align-self: flex-end; font-size: 1.8rem; cursor: pointer; margin-bottom: 20px; }
.drawer-link {
    padding: 15px; text-decoration: none; color: #333; font-weight: 500;
    border-radius: 8px; margin-bottom: 5px; display: flex; align-items: center; gap: 15px;
}
.drawer-link:hover { background: #f0f2f5; color: var(--primary); }

/* --- 3. SLIDER SECTION --- */
.slider-wrapper {
    width: 100%; height: 200px;
    position: relative; overflow: hidden; background: #ddd;
}
@media (min-width: 768px) { .slider-wrapper { height: 350px; } }

.slide {
    width: 100%; height: 100%; position: absolute; top: 0; left: 0;
    opacity: 0; transition: opacity 0.5s ease-in-out;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

/* --- 4. TABLE SECTION (Previous Style Restored) --- */
.content-area { padding: 20px; }
.section-title { font-size: 1.2rem; margin-bottom: 15px; font-weight: 600; color: #333; }

/* Table Container for Responsiveness */
.table-responsive {
    background: white; border-radius: 12px;
    box-shadow: var(--shadow); overflow-x: auto; /* Scroll horizontally on mobile */
}

table { width: 100%; border-collapse: collapse; min-width: 600px; /* Forces scroll on small screens */ }
thead { background: var(--primary); color: white; }
th { padding: 15px; text-align: left; font-weight: 500; font-size: 0.9rem; }
td { padding: 15px; border-bottom: 1px solid #f1f1f1; vertical-align: middle; color: #555; }
tr:last-child td { border-bottom: none; }

/* Action Buttons */
.btn-icon {
    display: inline-flex; width: 32px; height: 32px;
    align-items: center; justify-content: center;
    border-radius: 6px; color: white; text-decoration: none;
    margin-right: 5px; font-size: 0.9rem; border: none; cursor: pointer;
}
.bg-view { background: #00b894; }
.bg-dl { background: #0984e3; }
.bg-link { background: #6c5ce7; }

/* --- 5. LOGIN / SIGNUP PAGE (Beautiful Design) --- */
.auth-body {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px;
}
.auth-card {
    background: white; padding: 40px; width: 100%; max-width: 400px;
    border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
}
.auth-title { font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.auth-subtitle { color: #888; margin-bottom: 30px; font-size: 0.9rem; }
.auth-input {
    width: 100%; padding: 14px; margin-bottom: 15px;
    border: 2px solid #eee; border-radius: 10px; outline: none; transition: 0.3s;
}
.auth-input:focus { border-color: var(--primary); }
.auth-btn {
    width: 100%; padding: 14px; background: var(--primary); color: white;
    border: none; border-radius: 10px; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: 0.3s; box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
}
.auth-btn:hover { background: #3c40c6; transform: translateY(-2px); }
.auth-link { display: block; margin-top: 20px; color: #666; font-size: 0.9rem; text-decoration: none; }
.auth-link span { color: var(--primary); font-weight: 600; }



* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { background: var(--light); color: var(--dark); overflow-x: hidden; }

/* --- 1. CLEAN APP HEADER (Sticky) --- */
.app-header {
    background: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.menu-trigger {
    font-size: 1.6rem; color: var(--dark); cursor: pointer;
    padding: 5px; transition: 0.2s;
}
.menu-trigger:active { transform: scale(0.9); color: var(--primary); }

.app-logo {
    font-size: 1.4rem; font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

/* --- 2. GLASSMORPHIC SIDEBAR (Drawer) --- */
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); z-index: 1001;
    opacity: 0; visibility: hidden; transition: 0.3s ease;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar {
    position: fixed; top: 0; left: -280px; /* Hidden */
    width: 280px; height: 100%;
    background: var(--glass);
    backdrop-filter: blur(15px); /* Premium Blur */
    z-index: 1002;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
    padding: 25px;
    display: flex; flex-direction: column;
}
.sidebar.open { left: 0; }

.close-sidebar {
    align-self: flex-end; font-size: 1.8rem; cursor: pointer;
    color: var(--dark); margin-bottom: 30px;
}

.nav-link {
    text-decoration: none; color: var(--dark);
    font-size: 1.1rem; font-weight: 500;
    padding: 15px; margin-bottom: 10px;
    border-radius: 12px;
    display: flex; align-items: center; gap: 15px;
    transition: 0.3s;
}
.nav-link i { font-size: 1.3rem; color: var(--secondary); }
.nav-link:hover { background: var(--white); color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.nav-link.logout { margin-top: auto; color: var(--accent); }
.nav-link.logout i { color: var(--accent); }

/* --- 3. SLIDER AREA --- */
.slider-section {
    width: 100%; height: 220px;
    position: relative; overflow: hidden;
    background: #e0e0e0;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.05);
}
@media (min-width: 768px) { .slider-section { height: 380px; } }

.slide {
    width: 100%; height: 100%; position: absolute; top: 0; left: 0;
    opacity: 0; transition: opacity 0.8s ease;
    background-size: cover; background-position: center;
}
.slide.active { opacity: 1; transform: scale(1.05); transition: 6s; }

/* --- 4. DASHBOARD CONTENT --- */
.container {
    padding: 20px;
    margin-top: -30px; /* Overlap Slider */
    position: relative; z-index: 10;
}

/* Mini Stats (Above Table) */
.mini-stats {
    display: flex; gap: 15px; margin-bottom: 25px;
}
.stat-box {
    flex: 1; background: var(--white);
    padding: 15px; border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: space-between;
}
.stat-box h3 { font-size: 1.2rem; margin: 0; }
.stat-box p { font-size: 0.8rem; color: #777; margin: 0; }
.stat-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem;
}

/* Table Card */
.table-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.table-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.table-title { font-size: 1.2rem; font-weight: 700; }
.btn-new {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white; padding: 8px 18px; border-radius: 30px;
    text-decoration: none; font-size: 0.85rem; font-weight: 600;
    box-shadow: 0 4px 10px rgba(78, 84, 200, 0.4);
}

/* Responsive Table */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th { text-align: left; padding: 15px 10px; color: #888; font-size: 0.85rem; font-weight: 600; border-bottom: 1px solid #eee; }
td { padding: 15px 10px; font-size: 0.95rem; border-bottom: 1px solid #f9f9f9; vertical-align: middle; }
tr:last-child td { border-bottom: none; }

/* Action Buttons */
.action-btn {
    width: 35px; height: 35px; border-radius: 8px; border: none;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: white; margin-right: 5px; transition: 0.2s;
}
.btn-view { background: var(--success); }
.btn-link { background: var(--secondary); }
.btn-down { background: var(--primary); }
.action-btn:hover { transform: translateY(-3px); }