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

:root {
    --theme-color: #4f46e5; /* Default indigo/purple */
    --theme-light: rgba(79, 70, 229, 0.1);
    --bg-color: #f3f4f6;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.4);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --sidebar-width: 260px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,0.03) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,0.03) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,0.03) 0, transparent 50%);
    background-attachment: fixed;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Glassmorphism Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid var(--card-border);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

/* Buttons */
.btn-theme {
    background-color: var(--theme-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-theme::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0));
    z-index: -1;
}

.btn-theme:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    filter: brightness(110%);
}

.btn-theme:active {
    transform: translateY(0);
}

/* Theme Utilities */
.text-theme { color: var(--theme-color) !important; }
.bg-theme { background-color: var(--theme-color) !important; }
.bg-theme-light { background-color: var(--theme-light) !important; color: var(--theme-color); }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--card-border);
    z-index: 1000;
    padding: 1.5rem 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.sidebar .brand-logo {
    max-height: 40px;
    object-fit: contain;
}

.sidebar .nav-link {
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    margin: 0.2rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .nav-link:hover {
    color: var(--theme-color);
    background: var(--theme-light);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    color: var(--theme-color);
    background: var(--theme-light);
    font-weight: 600;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.sidebar .nav-link:hover i {
    transform: scale(1.1);
}

/* Main Content Wrapper */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: var(--theme-color);
    opacity: 0.15;
    top: -100px; left: -100px;
    filter: blur(60px);
}

.login-container::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: #ec4899;
    opacity: 0.1;
    bottom: -50px; right: -50px;
    filter: blur(50px);
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    z-index: 10;
}

.form-control {
    background: rgba(255,255,255,0.9);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    box-shadow: 0 0 0 4px var(--theme-light);
    border-color: var(--theme-color);
}

/* Stats Cards */
.stat-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 1.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.stat-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Table styling */
.table-glass {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table-glass th {
    font-weight: 600;
    color: var(--text-muted);
    border-bottom-width: 1px;
    border-color: rgba(0,0,0,0.05);
    padding: 1rem;
}

.table-glass td {
    padding: 1rem;
    vertical-align: middle;
    border-color: rgba(0,0,0,0.05);
}

.badge-glass {
    padding: 0.5em 1em;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .main-content {
        margin-left: 0;
    }
}
