@import url("common.css");

:root {
    --admin-primary: #6366f1;
    --admin-primary-hover: #4f46e5;
    --admin-secondary: #0ea5e9;
    --admin-success: #10b981;
    --admin-warning: #f59e0b;
    --admin-danger: #ef4444;
    --admin-dark-bg: #0f172a;
    --admin-card-bg: #1e293b;
}

/* Base Styles */
body {
    background-color: #f8fafc;
    color: #334155;
    font-family: 'Josefin Sans', sans-serif;
    transition: background-color 0.3s ease;
}

html[data-bs-theme="dark"] body {
    background-color: var(--admin-dark-bg);
    color: #f1f5f9;
}

/* Glassmorphism Navbar */
.admin-navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

html[data-bs-theme="dark"] .admin-navbar {
    background: rgba(15, 23, 42, 0.85) !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.navbar-brand-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Modern Cards */
.admin-card {
    border: none;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

html[data-bs-theme="dark"] .admin-card {
    background: var(--admin-card-bg);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -4px rgba(99, 102, 241, 0.15);
}

/* Gradient Stat Cards */
.stat-card-gradient-1 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
}

.stat-card-gradient-2 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.stat-card-gradient-3 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.stat-card-gradient-4 {
    background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
    color: #ffffff;
}

.stat-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Modern Buttons */
.btn-primary-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-pill-rounded {
    border-radius: 50rem;
    padding: 0.5rem 1.25rem;
}

/* Sidebar Nav Pills */
.admin-nav-pill .nav-link {
    color: #64748b;
    border-radius: 0.85rem;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

html[data-bs-theme="dark"] .admin-nav-pill .nav-link {
    color: #94a3b8;
}

.admin-nav-pill .nav-link:hover {
    background: #f1f5f9;
    color: #475569;
}

html[data-bs-theme="dark"] .admin-nav-pill .nav-link:hover {
    background: #334155;
    color: #f8fafc;
}

.admin-nav-pill .nav-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Badges */
.badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
}

.badge-inactive {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.3);
    font-weight: 600;
}

/* Form Styling */
.form-control-modern, .form-select-modern {
    border-radius: 0.85rem;
    border: 1.5px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

html[data-bs-theme="dark"] .form-control-modern,
html[data-bs-theme="dark"] .form-select-modern {
    background-color: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.form-control-modern:focus, .form-select-modern:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
