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

:root {
    --primary: #4F46E5;
    --secondary: #ec4899;
    --dark: #0f172a;
    --darker: #0b1120;
    --light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --hover-bg: rgba(255, 255, 255, 0.05);
    --text-muted: #94a3b8;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar-brand i {
    -webkit-text-fill-color: var(--primary);
}

.nav-link {
    color: var(--light) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--secondary) !important;
}

.dropdown-menu {
    background: var(--darker);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 12px;
}
.dropdown-item {
    color: var(--light);
    transition: background 0.2s ease;
}
.dropdown-item:hover {
    background: var(--hover-bg);
    color: white;
}
.dropdown-divider {
    border-color: var(--border);
}

/* Glassmorphism Cards */
.card, .panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover, .panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: white;
}

/* Sidebar List Group */
.list-group {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.list-group-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.list-group-item:last-child {
    border-bottom: none;
}
.list-group-item:hover {
    background: var(--hover-bg);
    color: white;
    padding-left: 2rem;
}
.list-group-item.active {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.1), transparent);
    color: #fff;
    border-left: 3px solid var(--primary);
}

/* Inputs & Forms */
.form-control, .form-select {
    background-color: rgba(0,0,0,0.2) !important;
    border: 1px solid var(--border);
    color: white !important;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    background-color: rgba(0,0,0,0.3) !important;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    color: white;
}
.form-control::placeholder {
    color: rgba(255,255,255,0.3);
}
.form-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--light);
}
.btn-outline-primary:hover {
    background: rgba(79, 70, 229, 0.1);
    color: white;
    transform: translateY(-2px);
}

/* Tables */
.table {
    color: var(--light);
    margin-bottom: 0;
}
.table th {
    background: rgba(0, 0, 0, 0.2) !important;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1.25rem 1rem;
}
.table td {
    background: transparent !important;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1rem;
    vertical-align: middle;
    color: #e2e8f0;
}
.table-hover tbody tr {
    transition: background 0.2s ease;
}
.table-hover tbody tr:hover td {
    background: var(--hover-bg) !important;
    color: white;
}
.table-light {
    --bs-table-bg: transparent;
}

/* Text Utilities */
.text-muted {
    color: var(--text-muted) !important;
}
.text-dark {
    color: white !important; /* Override text-dark for dark theme */
}
.bg-white {
    background-color: transparent !important; /* Override bg-white */
}

/* Dropzone */
#dropzone {
    border: 2px dashed rgba(255,255,255,0.2) !important;
    background: rgba(0,0,0,0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
#dropzone::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: radial-gradient(circle, rgba(79,70,229,0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    border-radius: 50%;
    z-index: 0;
}
#dropzone:hover::after, #dropzone.dragover::after {
    width: 300px; height: 300px;
}
#dropzone > * {
    position: relative;
    z-index: 1;
}
#dropzone:hover {
    border-color: var(--primary) !important;
    transform: scale(1.02);
}

/* Modals */
.modal-content {
    background: var(--darker);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
}
.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
}
.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
}
.modal-backdrop.show {
    opacity: 0.7;
    backdrop-filter: blur(4px);
}

/* Badges */
.badge {
    padding: 0.5em 0.8em;
    border-radius: 6px;
    font-weight: 500;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    color: white;
}
