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

:root {
    --bg-color: #050505;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --surface-active: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent: #bb86fc;
    --secondary: #03dac6;
    --danger: #cf6679;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --neon-glow: 0 0 15px rgba(187, 134, 252, 0.3);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(187, 134, 252, 0.08) 0%, transparent 70%);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(3, 218, 198, 0.05) 0%, transparent 70%);
    z-index: -1;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #fff 0%, #bb86fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-link:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    transform: translateX(5px);
}

.nav-link.active {
    background: var(--surface-active);
    color: var(--text-primary);
    border-color: var(--glass-border);
    box-shadow: var(--neon-glow);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 50px;
    overflow-y: auto;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
}

.card h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
}

/* Forms & Buttons */
input, select, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    width: 100%;
    margin-bottom: 15px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    -webkit-appearance: none; /* Reset for better styling */
    appearance: none;
}

/* Fix for drop-down visibility */
select option {
    background-color: #1a1a1a;
    color: var(--text-primary);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    body {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        position: sticky;
        top: 0;
    }

    .logo {
        margin-bottom: 0;
        font-size: 1.4rem;
    }

    .nav-group {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px;
        gap: 5px;
    }

    .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .nav-link i {
        font-size: 1rem;
    }

    .nav-link:hover {
        transform: none;
    }

    .sidebar div[style*="margin-top: auto"] {
        display: none;
    }

    .main-content {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .card {
        padding: 20px;
    }

    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important; /* Force single column on mobile */
    }
}

@media (max-width: 600px) {
    .nav-link span {
        display: none; /* Hide text on very small screens, show icons only */
    }
    
    .nav-group {
        gap: 15px;
    }
}

.btn {
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(187, 134, 252, 0.6);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

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

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

th {
    text-align: left;
    padding: 15px;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--glass-border);
}

/* Status Badges */
.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active { background: rgba(3, 218, 198, 0.15); color: var(--secondary); }
.status-inactive { background: rgba(207, 102, 121, 0.15); color: var(--danger); }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
