/* Custom CSS for MahmoudDaily - Bootstrap Extension */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #7c3aed;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --sidebar-bg: linear-gradient(to bottom, #0f172a, #1e293b, #0f172a);
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
[dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .ms-3 { margin-left: 0 !important; margin-right: 1rem !important; }
[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
[dir="rtl"] .me-auto { margin-right: 0 !important; margin-left: auto !important; }
[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .text-end { text-align: left !important; }
[dir="rtl"] .border-start { border-left: 0 !important; border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important; }
[dir="rtl"] .border-end { border-right: 0 !important; border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important; }
[dir="rtl"] .ps-2 { padding-left: 0 !important; padding-right: 0.5rem !important; }
[dir="rtl"] .ps-3 { padding-left: 0 !important; padding-right: 1rem !important; }
[dir="rtl"] .pe-2 { padding-right: 0 !important; padding-left: 0.5rem !important; }
[dir="rtl"] .pe-3 { padding-right: 0 !important; padding-left: 1rem !important; }
[dir="rtl"] .float-start { float: right !important; }
[dir="rtl"] .float-end { float: left !important; }
[dir="rtl"] .dropdown-menu-end { left: 0 !important; right: auto !important; }

/* Arabic Font */
body.arabic-font {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.bg-gradient-dark {
    background: var(--sidebar-bg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 5rem 0;
}

/* Enhanced Hero Section */
.hero-section-enhanced {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #4f46e5 100%);
    padding: 4rem 0 6rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.1;
}

.hero-bg-shapes::before,
.hero-bg-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: white;
}

.hero-bg-shapes::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.hero-bg-shapes::after {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

.hero-title {
    line-height: 1.2;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Code Window Illustration */
.hero-illustration {
    perspective: 1000px;
}

.code-window {
    background: #1e293b;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.code-window:hover {
    transform: rotateY(0) rotateX(0);
}

.code-header {
    background: #334155;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.code-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-header .dot.red { background: #ef4444; }
.code-header .dot.yellow { background: #f59e0b; }
.code-header .dot.green { background: #10b981; }

.code-body {
    padding: 1.5rem;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-body code {
    color: #e2e8f0;
}

/* Stats Row */
.stats-row {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 2rem;
}

/* Tool Card Mini */
.tool-card-mini {
    display: block;
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 1rem;
    transition: all 0.2s ease;
    border: 1px solid #f1f5f9;
}

.tool-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

.tool-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Category Pills */
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-pill:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.category-name {
    color: #1e293b;
    font-weight: 500;
}

.category-count {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    min-width: 24px;
    text-align: center;
}

/* Newsletter Section */
.newsletter-section {
    background: #f8fafc;
}

.newsletter-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.newsletter-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

/* Empty State */
.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #94a3b8;
}

/* Featured Card */
.card-featured {
    min-height: 300px;
}

.card-featured img {
    min-height: 300px;
}

/* Object Fit */
.object-fit-cover {
    object-fit: cover;
}

/* Responsive Hero */
@media (max-width: 991.98px) {
    .hero-section-enhanced {
        padding: 3rem 0 5rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-row {
        margin-top: -2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section-enhanced {
        padding: 2rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .newsletter-card {
        padding: 2rem 1.5rem;
    }
    
    .tool-card-mini {
        padding: 1rem 0.75rem;
    }
    
    .tool-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .tool-icon-wrapper i {
        font-size: 1.25rem !important;
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-img-top {
    border-radius: 1rem 1rem 0 0;
    height: 200px;
    object-fit: cover;
}

.card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem 1rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-snippet-text {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Badges */
.badge-primary-soft {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.badge-success-soft {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-warning-soft {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

/* Sidebar - Compact Design */
.admin-sidebar {
    background: var(--sidebar-bg);
    height: 100vh;
    width: 240px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease, width 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-sidebar nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem !important;
}

.admin-sidebar nav::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar nav::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.admin-sidebar nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

[dir="rtl"] .admin-sidebar {
    left: auto;
    right: 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 2px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.admin-sidebar .nav-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 0.4rem;
    font-size: 0.85rem;
}

.admin-sidebar .section-label {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem 0.25rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .badge {
    font-size: 0.65rem;
    padding: 0.2em 0.5em;
}

.admin-content {
    margin-left: 240px;
    min-height: 100vh;
}

[dir="rtl"] .admin-content {
    margin-left: 0;
    margin-right: 240px;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    [dir="rtl"] .admin-sidebar {
        transform: translateX(100%);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Admin Responsive Utilities */
@media (max-width: 767.98px) {
    .admin-content main {
        padding: 1rem !important;
    }
    
    .admin-content header {
        padding: 0.75rem 1rem !important;
    }
    
    .admin-content header h4 {
        font-size: 1.1rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-icon {
        width: 40px;
        height: 40px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table th, .table td {
        padding: 0.5rem !important;
        white-space: nowrap;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .form-control, .form-select {
        font-size: 0.875rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .admin-content main {
        padding: 0.75rem !important;
    }
    
    .d-flex.gap-3 {
        gap: 0.5rem !important;
    }
    
    .d-flex.gap-2 {
        gap: 0.25rem !important;
    }
    
    .row.g-4 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 1rem;
    }
    
    .row.g-3 {
        --bs-gutter-y: 0.75rem;
        --bs-gutter-x: 0.75rem;
    }
    
    .fs-4 {
        font-size: 1.1rem !important;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 0.25em 0.5em;
    }
}

/* Stats Cards */
.stats-card {
    border-radius: 1rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.stats-icon.primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.stats-icon.success { background: linear-gradient(135deg, #10b981, #34d399); }
.stats-icon.warning { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.stats-icon.info { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.stats-icon.danger { background: linear-gradient(135deg, #ef4444, #f87171); }
.stats-icon.purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

/* Tables */
.table-modern {
    border-radius: 1rem;
    overflow: hidden;
}

.table-modern thead {
    background-color: #f8fafc;
}

.table-modern th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #64748b;
    border: none;
    padding: 1rem;
}

.table-modern td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #f1f5f9;
}

.table-modern tbody tr:hover {
    background-color: #f8fafc;
}

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

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

/* Search Box */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-left: 2.5rem;
    background-color: #f8fafc;
    border: none;
    border-radius: 0.75rem;
}

[dir="rtl"] .search-box .form-control {
    padding-left: 1rem;
    padding-right: 2.5rem;
}

.search-box .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

[dir="rtl"] .search-box .search-icon {
    left: auto;
    right: 0.75rem;
}

/* Footer */
footer {
    background-color: #fff;
    border-top: 1px solid #e2e8f0;
}

/* Prose Content */
.prose {
    max-width: 65ch;
    color: #374151;
    line-height: 1.75;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #111827;
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose a {
    color: var(--primary-color);
    text-decoration: underline;
}

.prose code {
    background-color: #f3f4f6;
    padding: 0.25em 0.5em;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.prose pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.prose img {
    border-radius: 0.5rem;
    margin: 2em 0;
}

.prose blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    font-style: italic;
    color: #6b7280;
}

[dir="rtl"] .prose blockquote {
    border-left: none;
    border-right: 4px solid var(--primary-color);
    padding-left: 0;
    padding-right: 1rem;
}

/* Modal */
.modal-modern .modal-content {
    border: none;
    border-radius: 1rem;
}

.modal-modern .modal-header {
    border-bottom: 1px solid #f1f5f9;
}

.modal-modern .modal-footer {
    border-top: 1px solid #f1f5f9;
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Minimal Navbar */
.navbar-minimal {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar-minimal.scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.navbar-spacer {
    height: 60px;
}

/* Brand */
.navbar-minimal .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.navbar-minimal .brand-logo {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.navbar-minimal .brand-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
}

/* Nav Links */
.navbar-minimal .nav-link {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.875rem;
    transition: color 0.2s;
}

.navbar-minimal .nav-link:hover {
    color: #1e293b;
}

.navbar-minimal .nav-link.active {
    color: var(--primary-color);
}

/* Navbar End */
.navbar-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Icon Buttons */
.nav-icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-icon-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.nav-icon-btn .lang-code {
    font-weight: 600;
    font-size: 0.75rem;
}

/* User Avatar */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hamburger */
.navbar-minimal .navbar-toggler {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
}

.navbar-minimal .toggler-icon {
    display: block;
    width: 18px;
    height: 2px;
    background: #64748b;
    margin: 0 auto;
    position: relative;
}

.navbar-minimal .toggler-icon::before,
.navbar-minimal .toggler-icon::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: #64748b;
    left: 0;
}

.navbar-minimal .toggler-icon::before { top: -5px; }
.navbar-minimal .toggler-icon::after { bottom: -5px; }

/* Dropdown */
.navbar-minimal .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    min-width: 200px;
}

.navbar-minimal .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.navbar-minimal .dropdown-item:hover {
    background: #f1f5f9;
}

/* Mobile */
@media (max-width: 991.98px) {
    .navbar-minimal .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        background: white;
        border-radius: 12px;
        padding: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }
    
    .navbar-minimal .navbar-nav {
        gap: 0.25rem;
    }
    
    .navbar-minimal .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .navbar-minimal .nav-link:hover,
    .navbar-minimal .nav-link.active {
        background: #f8fafc;
    }
    
    .navbar-end {
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: 1px solid #f1f5f9;
        justify-content: center;
    }
    
    .nav-icon-btn {
        width: 40px;
        height: 40px;
    }
    
    .navbar-spacer {
        height: 60px;
    }
}

/* Navbar Brand Legacy */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

/* CKEditor Styles */
.ck-editor__editable {
    min-height: 400px !important;
}

.ck-editor__editable:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

/* User Avatar */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Views Chart */
.chart-bar {
    flex: 1;
    background-color: var(--primary-color);
    border-radius: 0.25rem 0.25rem 0 0;
    min-height: 4px;
    transition: background-color 0.2s;
}

.chart-bar:hover {
    background-color: var(--primary-dark);
}

/* About Me Section */
.about-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.about-image-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse-slow 4s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

.about-image-card {
    position: relative;
    background: white;
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.about-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.about-floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    animation: float 3s ease-in-out infinite;
}

.about-floating-badge i {
    color: var(--primary-color);
}

.about-floating-badge.top-badge {
    top: 0;
    right: -20px;
    animation-delay: 0s;
}

.about-floating-badge.bottom-badge {
    bottom: 20px;
    left: -20px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.about-highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.about-highlight-card:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.about-highlight-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Resume Section */
.resume-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resume-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.resume-timeline {
    position: relative;
    padding-left: 1.5rem;
}

[dir="rtl"] .resume-timeline {
    padding-left: 0;
    padding-right: 1.5rem;
}

.resume-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

[dir="rtl"] .resume-timeline::before {
    left: auto;
    right: 0;
}

.resume-item {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.resume-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

[dir="rtl"] .resume-item:hover {
    transform: translateX(-5px);
}

.resume-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
}

[dir="rtl"] .resume-item::before {
    left: auto;
    right: -1.5rem;
    transform: translateX(50%);
}

.resume-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.skill-tag i {
    color: var(--primary-color);
}

/* Responsive About & Resume */
@media (max-width: 991.98px) {
    .about-image-wrapper {
        min-height: 350px;
        margin-bottom: 2rem;
    }
    
    .about-floating-badge.top-badge {
        right: 0;
    }
    
    .about-floating-badge.bottom-badge {
        left: 0;
    }
}

@media (max-width: 767.98px) {
    .about-image-wrapper {
        min-height: 300px;
    }
    
    .about-image-card {
        padding: 2rem;
    }
    
    .about-avatar {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }
    
    .about-floating-badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .resume-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .skill-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* About Hero Section */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #4f46e5 100%);
    padding: 4rem 0 6rem;
}

/* Contact Section */
.contact-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

@media (max-width: 767.98px) {
    .about-hero {
        padding: 3rem 0 4rem;
    }
    
    .contact-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* Portfolio Page */
.portfolio-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 4rem 0 6rem;
}

.project-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    opacity: 0.9;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    z-index: 2;
}

[dir="rtl"] .project-featured-badge {
    right: auto;
    left: 1rem;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .project-link:nth-child(2) {
    transition-delay: 0.1s;
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-title {
    color: #1a1a2e;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--primary-color);
}

.project-description {
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.project-stats i {
    margin-right: 0.25rem;
}

[dir="rtl"] .project-stats i {
    margin-right: 0;
    margin-left: 0.25rem;
}

/* Portfolio Stats */
.portfolio-stat {
    padding: 1.5rem;
}

.portfolio-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-stat-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

body.dark-mode .cta-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 767.98px) {
    .portfolio-hero {
        padding: 3rem 0 4rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .portfolio-stat-number {
        font-size: 2rem;
    }
    
    .cta-card {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Dark Mode */
body.dark-mode {
    background-color: #0f172a !important;
    color: #e2e8f0;
}

body.dark-mode .bg-light {
    background-color: #0f172a !important;
}

body.dark-mode .bg-white,
body.dark-mode .card,
body.dark-mode .navbar-minimal {
    background-color: rgba(30, 41, 59, 0.98) !important;
}

body.dark-mode .navbar-minimal .brand-name {
    color: #f1f5f9;
}

body.dark-mode .navbar-minimal .nav-link {
    color: #94a3b8;
}

body.dark-mode .navbar-minimal .nav-link:hover {
    color: #f1f5f9;
}

body.dark-mode .nav-icon-btn {
    background: #334155;
    color: #94a3b8;
}

body.dark-mode .nav-icon-btn:hover {
    background: #475569;
    color: #f1f5f9;
}

body.dark-mode .navbar-minimal .navbar-toggler {
    background: #334155;
}

body.dark-mode .navbar-minimal .toggler-icon,
body.dark-mode .navbar-minimal .toggler-icon::before,
body.dark-mode .navbar-minimal .toggler-icon::after {
    background: #94a3b8;
}

body.dark-mode .navbar-minimal .navbar-collapse {
    background: #1e293b;
}

body.dark-mode .navbar-end {
    border-top-color: #334155;
}

body.dark-mode .text-dark,
body.dark-mode .card-title a,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, 
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #f1f5f9 !important;
}

body.dark-mode .text-muted {
    color: #94a3b8 !important;
}

body.dark-mode .border,
body.dark-mode .border-top,
body.dark-mode .border-bottom {
    border-color: #334155 !important;
}

body.dark-mode .card {
    border-color: #334155;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    background-color: #1e293b;
    border-color: var(--primary-color);
    color: #e2e8f0;
}

body.dark-mode .dropdown-menu {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .dropdown-item {
    color: #e2e8f0;
}

body.dark-mode .dropdown-item:hover {
    background-color: #334155;
}

body.dark-mode footer {
    background-color: #1e293b !important;
}

body.dark-mode .prose {
    color: #cbd5e1;
}

body.dark-mode .prose code:not(pre code) {
    background-color: #334155;
    color: #f472b6;
}

body.dark-mode .toc-wrapper {
    background-color: #1e293b !important;
}

body.dark-mode .nav-link-modern {
    color: #cbd5e1 !important;
}

body.dark-mode .nav-link-modern:hover,
body.dark-mode .nav-link-modern.active {
    color: var(--primary-color) !important;
}

body.dark-mode .stat-card,
body.dark-mode .tool-card-mini,
body.dark-mode .category-pill {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .category-name {
    color: #e2e8f0;
}

body.dark-mode .newsletter-card {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

body.dark-mode .search-results {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .search-result-item:hover {
    background-color: #334155;
}

body.dark-mode .search-result-title {
    color: #f1f5f9;
}

body.dark-mode .search-input {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .search-input:focus {
    background-color: #0f172a;
}

body.dark-mode .search-section-title {
    color: #94a3b8;
}

body.dark-mode .search-section:not(:last-child) {
    border-color: #334155;
}

body.dark-mode .breadcrumb {
    background-color: transparent;
}

body.dark-mode .breadcrumb-item a {
    color: #94a3b8;
}

body.dark-mode .breadcrumb-item.active {
    color: #64748b;
}

body.dark-mode .breadcrumb-item + .breadcrumb-item::before {
    color: #64748b;
}

body.dark-mode .alert-light {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .alert-link {
    color: var(--primary-color);
}

body.dark-mode .list-group-item {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .list-group-item-action:hover {
    background-color: #334155;
    color: #f1f5f9;
}

body.dark-mode .list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

body.dark-mode .series-nav {
    background-color: #1e293b !important;
}

body.dark-mode .comments-section .card {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .comments-section strong {
    color: #f1f5f9;
}

body.dark-mode .comments-section p {
    color: #cbd5e1;
}

body.dark-mode .replies {
    border-color: #334155 !important;
}

body.dark-mode .btn-outline-secondary {
    color: #94a3b8;
    border-color: #475569;
}

body.dark-mode .btn-outline-secondary:hover {
    background-color: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

body.dark-mode .btn-outline-danger {
    color: #f87171;
    border-color: #f87171;
}

body.dark-mode .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

body.dark-mode .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

body.dark-mode .btn-light {
    background-color: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode .btn-light:hover {
    background-color: #475569;
    color: #f1f5f9;
}

body.dark-mode .btn-link {
    color: #94a3b8;
}

body.dark-mode .btn-link:hover {
    color: var(--primary-color);
}

body.dark-mode .card-img-placeholder {
    background-color: #334155;
}

body.dark-mode .badge-primary-soft {
    background-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

body.dark-mode .display-5 {
    color: #f1f5f9 !important;
}

body.dark-mode article {
    color: #cbd5e1;
}

body.dark-mode .fw-medium {
    color: #e2e8f0;
}

body.dark-mode .toc-link {
    color: #94a3b8 !important;
}

body.dark-mode .toc-link:hover {
    color: var(--primary-color) !important;
}

body.dark-mode ::placeholder {
    color: #64748b !important;
}

body.dark-mode .form-control::placeholder {
    color: #64748b;
}

/* Dark Mode - About Page */
body.dark-mode .about-highlight-card {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .about-highlight-card h6 {
    color: #f1f5f9;
}

body.dark-mode .resume-item {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .resume-item h5 {
    color: #f1f5f9;
}

body.dark-mode .resume-timeline::before {
    background-color: #334155;
}

body.dark-mode .skill-tag {
    background-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .contact-card {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .contact-card h6 {
    color: #f1f5f9;
}

body.dark-mode .about-image-card {
    background-color: #1e293b;
}

body.dark-mode .about-floating-badge {
    background-color: #1e293b;
    color: #e2e8f0;
}

/* Dark Mode - Portfolio Page */
body.dark-mode .project-card {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .project-title {
    color: #f1f5f9;
}

body.dark-mode .project-tag {
    background-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .project-image-placeholder {
    background-color: #334155;
}

body.dark-mode .portfolio-stat-number {
    color: #f1f5f9;
}

body.dark-mode .cta-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .cta-card h2 {
    color: #f1f5f9 !important;
}

body.dark-mode .cta-icon {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
}

body.dark-mode .cta-card p {
    color: #94a3b8 !important;
}

/* Dark Mode - Tailwind Classes (Courses Page) */
body.dark-mode .bg-white {
    background-color: #1e293b !important;
}
body.dark-mode .text-gray-900,
body.dark-mode .bg-white .text-gray-900,
body.dark-mode h1.text-gray-900,
body.dark-mode h2.text-gray-900,
body.dark-mode h3.text-gray-900,
body.dark-mode h4.text-gray-900 {
    color: #f1f5f9 !important;
}
body.dark-mode .text-gray-600,
body.dark-mode .bg-white .text-gray-600,
body.dark-mode p.text-gray-600 {
    color: #94a3b8 !important;
}
body.dark-mode .text-gray-500 {
    color: #94a3b8 !important;
}
body.dark-mode .text-gray-400 {
    color: #64748b !important;
}
body.dark-mode .bg-purple-100 {
    background-color: rgba(99, 102, 241, 0.2) !important;
}
body.dark-mode .prose,
body.dark-mode .prose-lg {
    color: #e2e8f0 !important;
}
body.dark-mode .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2) !important;
}
body.dark-mode .rounded-lg.shadow-md h1,
body.dark-mode .rounded-lg.shadow-md h2,
body.dark-mode .rounded-lg.shadow-md h3,
body.dark-mode .rounded-lg.shadow-md h4,
body.dark-mode .rounded-lg.shadow-md p,
body.dark-mode .rounded-lg.shadow-md span,
body.dark-mode .rounded-lg.shadow-md li {
    color: #e2e8f0 !important;
}
body.dark-mode .rounded-lg.shadow-md .text-2xl.font-bold,
body.dark-mode .rounded-lg.shadow-md .text-4xl.font-bold,
body.dark-mode .rounded-lg.shadow-md .text-xl.font-bold,
body.dark-mode .rounded-lg.shadow-md .text-3xl.font-bold {
    color: #f1f5f9 !important;
}
body.dark-mode .text-green-600 {
    color: #4ade80 !important;
}

/* Dark Mode - Tools Page */
body.dark-mode .tool-card {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .tool-card h5,
body.dark-mode .tool-card h6 {
    color: #f1f5f9;
}

body.dark-mode .card-header {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .card-hover:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

body.dark-mode section.bg-white {
    background-color: #1e293b !important;
}

body.dark-mode section h1 {
    color: #f1f5f9;
}

/* Dark Mode - Newsletter Section */
body.dark-mode .newsletter-card {
    background: linear-gradient(135deg, #4338ca, #6d28d9) !important;
}

body.dark-mode .newsletter-section {
    background-color: #0f172a;
}

/* Dark Mode - Home Page Sections */
body.dark-mode .hero-section {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
}

body.dark-mode .section-title {
    color: #f1f5f9;
}

body.dark-mode .post-card,
body.dark-mode .tip-card {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .post-card h5,
body.dark-mode .tip-card h5 {
    color: #f1f5f9;
}

/* Dark Mode - General Elements */
body.dark-mode .shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .border-bottom {
    border-color: #334155 !important;
}

body.dark-mode nav.bg-light {
    background-color: #1e293b !important;
}

body.dark-mode .rounded-circle.bg-light {
    background-color: #334155 !important;
}

body.dark-mode a.text-muted:hover {
    color: var(--primary-color) !important;
}

/* Dark Mode - Tools Index & Show Pages */
body.dark-mode .card h6.text-dark,
body.dark-mode .card .text-dark,
body.dark-mode h6.text-dark,
body.dark-mode .fw-semibold.text-dark {
    color: #f1f5f9 !important;
}

body.dark-mode .badge.bg-light {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .badge.bg-light.text-dark {
    color: #e2e8f0 !important;
}

body.dark-mode section.py-5:not(.bg-gradient-primary) {
    background-color: #0f172a;
}

body.dark-mode section.py-4.bg-light {
    background-color: #1e293b !important;
}

body.dark-mode .search-box input {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-mode .search-box input:focus {
    background-color: #0f172a;
    border-color: var(--primary-color);
}

/* Dark Mode - About Page Resume Section */
body.dark-mode #resume-section {
    background-color: #1e293b !important;
}

body.dark-mode .resume-section-header h4 {
    color: #f1f5f9;
}

/* Dark Mode - Portfolio Stats Section */
body.dark-mode .portfolio-stat {
    color: #e2e8f0;
}

/* Dark Mode - Contact Icon Dark */
body.dark-mode .contact-icon.bg-dark {
    background-color: #334155 !important;
}

body.dark-mode .contact-icon.bg-dark.text-dark {
    color: #e2e8f0 !important;
}

/* Dark Mode - Fix text colors in cards */
body.dark-mode .card .fw-semibold,
body.dark-mode .card .fw-bold {
    color: #f1f5f9;
}

body.dark-mode .card a.text-dark,
body.dark-mode a.card .text-dark {
    color: #f1f5f9 !important;
}

body.dark-mode .card-body h6 {
    color: #f1f5f9;
}

/* Dark Mode - Category headers */
body.dark-mode .mb-5 h4.fw-bold {
    color: #f1f5f9;
}

/* Dark Mode - Home Page Pricing Section */
body.dark-mode .stat-card {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .stat-number {
    color: #f1f5f9 !important;
}
body.dark-mode .category-pill {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .category-name {
    color: #f1f5f9;
}
body.dark-mode .tool-card-mini {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .tool-card-mini h6 {
    color: #f1f5f9 !important;
}
body.dark-mode .bg-light.py-5 {
    background: #1e293b !important;
}
body.dark-mode footer.bg-white {
    background: #0f172a !important;
}
body.dark-mode footer h4,
body.dark-mode footer h6 {
    color: #f1f5f9;
}

/* Dark Mode - Home Page Pricing Section */
.pricing-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
body.dark-mode .pricing-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
}
body.dark-mode .pricing-section .card {
    background: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-mode .pricing-section .card h4 {
    color: #f1f5f9 !important;
}
body.dark-mode .pricing-section .card .display-4 {
    color: #f1f5f9 !important;
}
body.dark-mode .pricing-section .card .list-unstyled li {
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
body.dark-mode .pricing-section .card .btn-outline-primary {
    border-color: #6366f1;
    color: #818cf8;
}
body.dark-mode .pricing-section .card .btn-outline-primary:hover {
    background: #6366f1;
    color: #fff;
}
