/**
 * SHBVeri Premium CSS Stylesheet
 * Dark Mode & Glassmorphic Dashboard UI
 */

:root {
    --bg-dark: #0a0F18;
    --sidebar-bg: #101726;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.07);
    --text-primary: #f3F4F6;
    --text-muted: #9ca3Af;
    --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    --accent-glow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Glassmorphic Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--accent-glow);
    transform: translateY(-2px);
}

/* Sidebar Widgets Layout */
.sidebar {
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    padding-top: 2rem;
    position: fixed;
    width: 260px;
    z-index: 100;
}

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

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: #ffffff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.main-content {
    margin-left: 260px;
    padding: 2rem;
}

/* Dashboard Metric Indicators */
.metric-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #9ca3Af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Styled Table Listings */
.table-responsive {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.custom-table {
    background-color: transparent !important;
    margin-bottom: 0;
}

.custom-table th {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.custom-table td {
    padding: 1rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.custom-table tr:hover td {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.01);
}

/* Badge components */
.badge-premium {
    background: var(--primary-gradient);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 6px;
}

/* Micro-animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
    }
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}
