/* BKH MANUALER - Premium Light Theme */

:root {
    /* Color Palette - Professional Light Theme */
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --secondary: #0284c7;
    --accent: #059669;
    --warning: #d97706;
    --danger: #dc2626;

    /* Neutral Colors - Light Mode */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-input: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(12px);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Navbar - Premium Glass Style */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.navbar .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.navbar-brand i {
    color: var(--primary);
}

.navbar-light .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-light .navbar-nav .nav-link::after,
.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link:hover::after {
    width: 20px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(79, 70, 229, 0.04);
}

.navbar .badge {
    background: var(--gradient-primary) !important;
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(79, 70, 229, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Premium Hero Enhancements */
.hero-glass-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: inline-block;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
}

.hero-premium {
    padding: 10rem 0;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.15), transparent),
        var(--bg-body);
    position: relative;
}

.hero-premium h1 {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero .btn-primary {
    background: #ffffff;
    color: var(--primary);
    border: none;
    box-shadow: var(--shadow-md);
}

.hero .btn-primary:hover {
    background: #f8fafc;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02), var(--shadow-glow);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-footer {
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

/* Feature Grid Enhancements */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.feature-card {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
}

.feature-card:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    background: var(--gradient-primary);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}

.btn-dark {
    background: var(--text-primary);
    color: white;
}

.btn-dark:hover {
    background: #0f172a;
}

.btn-light {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-light:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
}

/* Forms */
.form-control,
.form-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-input);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

/* Input Groups */
.input-group-text {
    background: var(--bg-body) !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
}

/* List Groups */
.list-group-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    transition: all var(--transition-fast);
}

.list-group-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateX(5px);
}

.list-group-item-action:hover {
    color: var(--primary);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
}

.badge.bg-secondary {
    background: rgba(79, 70, 229, 0.1) !important;
    color: var(--primary);
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Status Badges */
.status-draft {
    background: rgba(217, 119, 6, 0.1);
    color: #b45309;
}

.status-active {
    background: rgba(5, 150, 105, 0.1);
    color: #047857;
}

.status-archived {
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
}

/* Container */
.container-fluid {
    padding: 2rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================================================
   Split-View Knowledge Base (80/20 Layout)
   ========================================================================== */

.kb-split-container {
    display: flex;
    min-height: calc(100vh - 80px);
    background: #ffffff;
}

/* Sidebar (20%) */
.kb-sidebar {
    width: 20%;
    min-width: 280px;
    background: #fcfdfe;
    border-right: 1px solid var(--hc-border);
    padding: 2rem 1.5rem;
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
    overflow-y: auto;
}

/* @media Print Styles */
@media print {

    .navbar,
    .kb-sidebar,
    .footer,
    #scrollToTopBtn,
    .btn,
    .btn-group,
    .badge,
    .kb-meta-card,
    .hc-search-wrapper,
    .kb-landing-hero,
    .breadcrumb,
    .no-print {
        display: none !important;
    }

    .kb-split-container {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .kb-main-content {
        width: 100% !important;
        flex: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .kb-article-title {
        font-size: 24pt !important;
        margin-top: 0 !important;
    }

    .kb-article-content {
        font-size: 12pt !important;
        line-height: 1.5 !important;
    }

    /* Print specific page breaks and visibility */
    .lang-section.d-none {
        display: none !important;
    }

    .blog-content img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

.kb-sidebar-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hc-text-sub);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.kb-nav-group {
    margin-bottom: 2rem;
}

.kb-nav-category {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hc-text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    margin-bottom: 0.25rem;
}

.kb-nav-category i {
    width: 20px;
    color: var(--hc-primary);
    font-size: 1rem;
}

.kb-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kb-nav-item {
    margin-bottom: 2px;
}

.kb-nav-link {
    display: block;
    padding: 0.5rem 0.5rem 0.5rem 2.25rem;
    font-size: 0.875rem;
    color: var(--hc-text-sub);
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kb-nav-link:hover {
    background: var(--hc-primary-light);
    color: var(--hc-primary);
}

.kb-nav-link.active {
    background: var(--hc-primary-light);
    color: var(--hc-primary);
    font-weight: 600;
}

/* Main Content (80%) */
.kb-main-content {
    flex: 1;
    padding: 3rem 4rem;
    max-width: 100%;
    overflow-x: hidden;
}

/* Landing State Elements */
.kb-landing-hero {
    margin-bottom: 4rem;
}

.kb-landing-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--hc-text-main);
}

.kb-landing-hero p {
    color: var(--hc-text-sub);
    font-size: 1.125rem;
    max-width: 700px;
}

/* Latest Suggestions */
.kb-suggestions-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kb-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.kb-suggestion-card {
    background: #ffffff;
    border: 1px solid var(--hc-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.kb-suggestion-card:hover {
    border-color: var(--hc-primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.kb-suggestion-icon {
    width: 40px;
    height: 40px;
    background: var(--hc-bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hc-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.kb-suggestion-title {
    font-weight: 700;
    color: var(--hc-text-main);
    margin-bottom: 0.5rem;
    display: block;
}

.kb-suggestion-meta {
    font-size: 0.75rem;
    color: var(--hc-text-sub);
    margin-top: auto;
}

/* Manual View Integration Styles */
.kb-article-header {
    border-bottom: 1px solid var(--hc-border);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.kb-article-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--hc-text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.kb-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

.kb-article-content h2,
.kb-article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--hc-text-main);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .kb-sidebar {
        display: none;
        /* Mobile menu needed */
    }

    .kb-main-content {
        padding: 2rem;
    }
}

/* Hide global header elements if we want a cleaner dashboard feel? No, keep the navbar. */

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.page-item .page-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    margin: 0 0.25rem;
    transition: all var(--transition-fast);
}

.page-item.active .page-link,
.page-item .page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.page-item.disabled .page-link {
    background: var(--bg-card-hover);
    color: var(--text-muted);
    border-color: var(--border-color);
}

/* Dropdown */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
}

.dropdown-divider {
    border-color: var(--border-color);
}

/* Search Input in Navbar */
.navbar .form-control {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.navbar .form-control:focus {
    background: var(--bg-card);
    border-color: var(--primary);
}

/* No Image Placeholder */
.card-img-top.d-flex {
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%) !important;
}

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Staggered Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

.underline-title {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.underline-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Content Blocks */
.content-blocks .card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.content-blocks img {
    border-radius: var(--radius-md);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .container-fluid {
        padding: 1.5rem;
    }

    .card:hover {
        transform: none;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: var(--shadow-glow);
}

/* Invalid Feedback */
.invalid-feedback {
    color: var(--danger);
}

.is-invalid {
    border-color: var(--danger) !important;
}

/* Pull Right Fix */
.pull-right {
    float: right;
}

/* Alert Styles */
.alert {
    border-radius: var(--radius-md);
    border: none;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

/* Feature Cards on Homepage */
.hero+.container-fluid .card {
    border: none;
    background: var(--bg-card);
}

.hero+.container-fluid .card i {
    color: var(--primary);
}

/* Tables */
.table {
    --bs-table-bg: transparent;
    color: var(--text-primary);
}

.table thead {
    background: var(--bg-body);
}

.table th {
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: var(--bg-card-hover);
}

/* Form Check Inputs */
.form-check-input {
    width: 1.25em;
    height: 1.25em;
    border: 2px solid var(--border-color);
    border-radius: 0.25em;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Stat Cards - Modern Vibrant Glow Redesign */
.stat-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card.stat-users {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(79, 70, 229, 0.02) 100%);
    border-color: rgba(79, 70, 229, 0.15);
    box-shadow: 0 10px 25px -10px rgba(79, 70, 229, 0.2);
}

.stat-card.stat-manuals {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-color: rgba(16, 185, 129, 0.15);
    box-shadow: 0 10px 25px -10px rgba(16, 185, 129, 0.2);
}

.stat-card.stat-admins {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
    border-color: rgba(139, 92, 246, 0.15);
    box-shadow: 0 10px 25px -10px rgba(139, 92, 246, 0.2);
}

.stat-card.stat-active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
    border-color: rgba(245, 158, 11, 0.15);
    box-shadow: 0 10px 25px -10px rgba(245, 158, 11, 0.2);
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.stat-users .stat-icon-box {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.3);
}

.stat-manuals .stat-icon-box {
    background: #10b981;
    color: white;
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3);
}

.stat-admins .stat-icon-box {
    background: #8b5cf6;
    color: white;
    box-shadow: 0 8px 15px rgba(139, 92, 246, 0.3);
}

.stat-active .stat-icon-box {
    background: #f59e0b;
    color: white;
    box-shadow: 0 8px 15px rgba(245, 158, 11, 0.3);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    opacity: 0.7;
}

.stat-icon-bg {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 5rem;
    opacity: 0.03;
    transform: rotate(-15deg);
    pointer-events: none;
    transition: all 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.stat-users:hover {
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.4);
    border-color: var(--primary);
}

.stat-manuals:hover {
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.4);
    border-color: #10b981;
}

.stat-admins:hover {
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.4);
    border-color: #8b5cf6;
}

.stat-active:hover {
    box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.4);
    border-color: #f59e0b;
}

.stat-card:hover .stat-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.stat-card:hover .stat-icon-bg {
    opacity: 0.08;
    transform: rotate(0deg) scale(1.2);
}

.card.bg-primary {
    background: var(--gradient-primary) !important;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2) !important;
}

.card-lift {
    transition: all 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-10px);
}

/* Gap Utility */
.gap-2 {
    gap: 0.5rem;
}

/* Better Button Group */
.d-flex.gap-2 .btn {
    margin: 0;
}

/* Avatar Circle */
.rounded-circle {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Improved List Group for Checkboxes */
.list-group-flush .list-group-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.list-group-flush .list-group-item:last-child {
    border-bottom: none;
}

/* Card with border-primary */
.card.border-primary {
    border-color: var(--primary) !important;
    background: linear-gradient(145deg, rgba(79, 70, 229, 0.02) 0%, transparent 100%);
}

/* Image Thumbnail */
.img-thumbnail {
    border-color: var(--border-color);
    background: var(--bg-body);
}

/* Opacity utilities */
.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

/* Text utilities */
.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

/* Float utilities */
.float-end {
    float: right !important;
}

/* Better empty state */
.text-center.py-5 i.text-muted,
.text-center.py-4 i {
    opacity: 0.4;
}

/* Feature Cards on Homepage */
.hero+.container-fluid .card {
    border: none;
    background: var(--bg-card);
}

.hero+.container-fluid .card i {
    color: var(--primary);
}

/* Language Tabs Enhancements */
.nav-pills .nav-link {
    transition: all var(--transition-fast);
}

.pills-warning .nav-link.active {
    background: var(--warning) !important;
    color: var(--text-primary) !important;
}

/* Scroll to Top Hover */
#scrollToTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4) !important;
}

.italic {
    font-style: italic;
}