/* assets/css/style.css */
:root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
    --primary-color: #3f51b5;
    /* Indigo */
    --secondary-color: #ff4081;
    /* Pink */
    --accent-color: #03dac6;
    /* Teal */
    --danger-color: #cf6679;
    --success-color: #4caf50;
    --border-radius: 8px;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
/* Header & Navigation */
header {
    background-color: var(--card-bg);
    padding: 0 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.logo a {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 100%;
    left: 0;
    border-radius: 4px;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    color: #e0e0e0;
}

.dropdown-content a:hover {
    background-color: #444;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        gap: 0;
        flex-direction: column;
        background-color: #2d2d2d;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #444;
    }

    /* Mobile Dropdown Interaction */
    .dropdown-content {
        position: static;
        display: none;
        background-color: #222;
        box-shadow: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }
}

/* Auth / Login */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #303f9f;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card .stat {
    font-size: 2rem;
    font-weight: bold;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--card-bg);
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #444;
}

th {
    background-color: #333;
    color: var(--primary-color);
}

tr:hover {
    background-color: #3a3a3a;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #ffdce0;
    background-color: #8c2336;
    border-color: #cf6679;
}

.alert-success {
    color: #d7f5da;
    background-color: #274e2a;
    border-color: #4caf50;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}