/* Imported from examprayag_next/src/app/globals.css (Dark Mode Default) */
:root {
    --background: #000000;
    --foreground: #ffffff;
    --accent: #3b82f6;
    /* blue-500 */
    --card: #0a0a0a;
    /* zinc-950/black */
    --card-border: #27272a;
    /* zinc-800 */
    --muted: #a1a1aa;
    /* zinc-400 */
    --item-hover: #ffffff;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base Styles */
body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Utility Components matching Next.js App */

.gradient-text {
    background: linear-gradient(to right, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-card {
    background: var(--card);
    /* Fallback */
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    /* Dark shadow */
}

/* Tailwind-mimic Utilities (Zinc Palette for Dark Mode) */
.bg-zinc-950 {
    background-color: #09090b !important;
}

.bg-zinc-900 {
    background-color: #18181b !important;
}

.bg-zinc-800 {
    background-color: #27272a !important;
}

.text-zinc-300 {
    color: #d4d4d8 !important;
}

.text-zinc-400 {
    color: #a1a1aa !important;
}

.text-zinc-500 {
    color: #71717a !important;
}

.border-white-5 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.hover-bg-white-5:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.hover-border-accent:hover {
    border-color: rgba(59, 130, 246, 0.5) !important;
}

/* Radius */
.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Colors */
.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.border-accent {
    border-color: var(--accent) !important;
}

.bg-accent-10 {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.text-muted {
    color: var(--muted) !important;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.uppercase {
    text-transform: uppercase;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-primary:hover,
.btn-primary:focus {
    opacity: 0.9;
    transform: translateY(-1px);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    background-color: #2563eb;
    /* blue-600 */
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--card-border);
    color: var(--foreground);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    color: white;
}

.btn-success {
    background-color: #10b981;
    border: none;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    color: white;
}

/* Feature Grid */
.feature-card-hover:hover {
    border-color: rgba(37, 99, 235, 0.5);
    /* accent/50 */
    background-color: rgba(37, 99, 235, 0.05);
}

/* Dashboard Specifics */
.trend-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background-color: rgba(16, 185, 129, 0.1);
    /* emerald-500/10 */
    color: #10b981;
    /* emerald-500 */
    font-size: 0.75rem;
    font-weight: 700;
}

.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    /* rounded-xl */
    background-color: rgba(59, 130, 246, 0.1);
    /* accent/10 */
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-gradient-blue-purple {
    background: linear-gradient(to bottom right, #2563eb, #9333ea);
    /* blue-600 to purple-600 */
    color: white;
}

/* Admin Colors (Dark Mode Adapted) */
.bg-blue-soft {
    background-color: rgba(59, 130, 246, 0.1);
}

.text-blue-400 {
    color: #60a5fa !important;
}

.bg-emerald-soft {
    background-color: rgba(52, 211, 153, 0.1);
}

.text-emerald-400 {
    color: #34d399 !important;
}

.text-emerald-500 {
    color: #10b981 !important;
}

.bg-purple-soft {
    background-color: rgba(167, 139, 250, 0.1);
}

.text-purple-400 {
    color: #a78bfa !important;
}

.bg-amber-soft {
    background-color: rgba(251, 191, 36, 0.1);
}

.text-amber-400 {
    color: #fbbf24 !important;
}

.text-amber-500 {
    color: #f59e0b !important;
}

.bg-amber-alert {
    background-color: rgba(251, 191, 36, 0.05);
}

.border-amber-alert {
    border-color: rgba(251, 191, 36, 0.1);
}


/* Form Inputs (Dark) */
.form-control,
.form-select,
.input-group-text {
    background-color: rgba(24, 24, 27, 0.5);
    /* zinc-900/50 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(24, 24, 27, 0.8);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    color: white;
    outline: none;
}

.form-control::placeholder {
    color: #52525b;
}

.input-group-text {
    border-right: none;
    color: var(--muted);
}

/* Table Overrides for Dark Mode */
.table {
    color: var(--foreground);
    --bs-table-bg: transparent;
    --bs-table-color: var(--foreground);
    --bs-table-border-color: var(--card-border);
}

.table-hover tbody tr:hover td,
.table-hover tbody tr:hover th {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

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

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}


/* --- Global Dark Mode Overrides for Bootstrap --- */
.card {
    background-color: var(--card);
    /* #0a0a0a */
    border: 1px solid var(--card-border);
    color: var(--foreground);
}

.bg-white {
    background-color: #000 !important;
    color: var(--foreground) !important;
}

.bg-light {
    background-color: #18181b !important;
    /* zinc-900 */
    color: var(--foreground) !important;
}

.text-dark {
    color: #f4f4f5 !important;
    /* zinc-100 */
}

.text-muted {
    color: #a1a1aa !important;
    /* zinc-400 */
}

.border {
    border-color: var(--card-border) !important;
}

.list-group-item {
    background-color: var(--card);
    border-color: var(--card-border);
    color: var(--foreground);
}

.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--foreground);
}

.modal-content {
    background-color: #09090b;
    border: 1px solid var(--card-border);
    color: var(--foreground);
}

.modal-header {
    border-bottom: 1px solid var(--card-border);
}

.modal-footer {
    border-top: 1px solid var(--card-border);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.dropdown-menu {
    background-color: #18181b;
    border: 1px solid var(--card-border);
}

.dropdown-item {
    color: var(--foreground);
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}