/* wwwroot/css/site.css */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --primary-dark: #222831;
    --secondary-dark: #393E46;
    --accent-taupe: #948979;
    --light-cream: #DFD0B8;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--light-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Make all tables responsive with horizontal scroll */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

    .table-responsive table {
        width: 100%;
        min-width: 600px; /* Forces horizontal scroll on small screens */
        margin-bottom: 0;
        border-collapse: collapse;
    }

/* Mobile-specific styling */
@media (max-width: 768px) {
    .table-responsive {
        border: 1px solid #ddd;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .table-responsive table {
            font-size: 0.875rem; /* Slightly smaller text on mobile */
        }

        .table-responsive th,
        .table-responsive td {
            padding: 0.5rem 0.75rem; /* Adjust padding for mobile */
            white-space: nowrap; /* Prevent text wrapping */
        }
}

/* Optional: Add scrollbar styling */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 4px;
}
/* Inactivity warning modal styles */
.countdown-display {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

    .countdown-display .fs-2 {
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    }

/* Animation for countdown */
@keyframes pulse-warning {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.countdown-display .text-danger {
    animation: pulse-warning 1s infinite;
}

/* Enhanced Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 4px 20px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-cream);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .navbar-brand:hover {
        transform: scale(1.05);
        color: var(--white);
    }

.navbar-toggler {
    background: none;
    border: 2px solid var(--light-cream);
    color: var(--light-cream);
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

.navbar-collapse {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white) !important;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px var(--shadow-light);
    }

    .nav-link.active {
        background: var(--accent-taupe);
        color: var(--white) !important;
        font-weight: 600;
    }

/* Enhanced Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 200px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-medium);
    padding: 0.5rem 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
    cursor: pointer;
}

    .dropdown-item:hover {
        background: linear-gradient(135deg, var(--accent-taupe), #7a7066);
        color: var(--white);
        transform: translateX(-5px);
    }

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Enhanced Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn:hover::before {
        width: 300px;
        height: 300px;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-taupe), #7a7066);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(148, 137, 121, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(148, 137, 121, 0.4);
    }

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-dark), #2d3238);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(57, 62, 70, 0.3);
}

    .btn-secondary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(57, 62, 70, 0.4);
    }

.btn-success {
    background: linear-gradient(135deg, var(--success), #229954);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
    }

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #e67e22);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

    .btn-warning:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    }

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #c0392b);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

    .btn-danger:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    }

.btn-info {
    background: linear-gradient(135deg, var(--info), #2980b9);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

    .btn-info:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    }

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--accent-taupe);
    color: var(--accent-taupe);
}

    .btn-outline-primary:hover {
        background: var(--accent-taupe);
        color: var(--white);
    }

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

    .btn-outline-light:hover {
        background: var(--white);
        color: var(--primary-dark);
    }

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    direction: rtl;
    text-align: right;
    background: var(--white);
    transition: all 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: var(--accent-taupe);
        box-shadow: 0 0 0 0.2rem rgba(148, 137, 121, 0.25);
        transform: translateY(-2px);
    }

    .form-control::placeholder {
        color: #6c757d;
        opacity: 0.7;
    }

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Enhanced Card Styles */
.card {
    background: var(--white);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-light);
    padding: 0;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px var(--shadow-medium);
    }

.card-header {
    background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
    color: var(--white);
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
}

.card-body {
    padding: 2rem;
}

.card-footer {
    background: var(--light-gray);
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.card-title {
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Enhanced Table Styles */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-light);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    background: var(--white);
}

    .table th,
    .table td {
        padding: 1rem;
        text-align: right;
        border-bottom: 1px solid var(--border-color);
        vertical-align: middle;
    }

    .table th {
        background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
        color: var(--white);
        font-weight: 600;
        border: none;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .table tbody tr {
        transition: all 0.3s ease;
    }

        .table tbody tr:hover {
            background: linear-gradient(135deg, var(--light-gray), #f1f3f4);
            transform: scale(1.01);
        }

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(148, 137, 121, 0.05);
}

/* Enhanced Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 4px 12px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

    .alert::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 4px;
        height: 100%;
        background: currentColor;
    }

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-right: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-right: 4px solid #dc3545;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-right: 4px solid #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border-right: 4px solid #17a2b8;
}

.alert-dismissible {
    padding-left: 4rem;
}

.btn-close {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

    .btn-close:hover {
        opacity: 1;
    }

/* Enhanced Badge Styles */
.badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

    .badge:hover {
        transform: scale(1.05);
    }

.bg-primary {
    background: linear-gradient(135deg, var(--accent-taupe), #7a7066) !important;
    color: var(--white) !important;
}

.bg-secondary {
    background: linear-gradient(135deg, var(--secondary-dark), #2d3238) !important;
    color: var(--white) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--success), #229954) !important;
    color: var(--white) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--warning), #e67e22) !important;
    color: var(--white) !important;
}

.bg-danger {
    background: linear-gradient(135deg, var(--danger), #c0392b) !important;
    color: var(--white) !important;
}

.bg-info {
    background: linear-gradient(135deg, var(--info), #2980b9) !important;
    color: var(--white) !important;
}

/* Enhanced Progress Bar */
.progress {
    height: 1rem;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px var(--shadow-light);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-taupe), #7a7066);
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

    .progress-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        animation: progress-shine 2s infinite;
    }

@keyframes progress-shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Enhanced Layout Styles */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, var(--accent-taupe), var(--primary-dark));
        border-radius: 2px;
    }

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-dark);
    margin-bottom: 2rem;
}

/* Enhanced Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1.5" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/></svg>');
        opacity: 0.1;
    }

    .footer h5 {
        color: var(--light-cream);
        margin-bottom: 1.5rem;
        font-weight: 600;
        position: relative;
        z-index: 2;
    }

.footer-links {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 2;
}

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        padding: 0.25rem 0;
    }

        .footer-links a::before {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 2px;
            background: var(--light-cream);
            transition: width 0.3s ease;
        }

        .footer-links a:hover::before {
            width: 100%;
        }

        .footer-links a:hover {
            color: var(--light-cream);
            padding-right: 0.5rem;
        }

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .social-link::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: var(--accent-taupe);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
    }

    .social-link:hover::before {
        width: 100%;
        height: 100%;
    }

    .social-link:hover {
        transform: translateY(-3px);
        color: var(--white);
        box-shadow: 0 8px 20px var(--shadow-medium);
    }

    .social-link i {
        position: relative;
        z-index: 2;
    }

.contact-info {
    position: relative;
    z-index: 2;
}

    .contact-info p {
        margin-bottom: 0.75rem;
        color: rgba(255, 255, 255, 0.9);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.version-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Enhanced Floating Button */
.btn-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: none;
    box-shadow: 0 4px 20px var(--shadow-heavy);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent-taupe), #7a7066);
    color: var(--white);
    border: none;
    cursor: pointer;
}

    .btn-floating:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 30px var(--shadow-heavy);
    }

    .btn-floating i {
        font-size: 1.5rem;
    }

/* Enhanced Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border: 0.3em solid rgba(148, 137, 121, 0.3);
    border-top: 0.3em solid var(--accent-taupe);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced Video Container */
.video-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px var(--shadow-medium);
    background: var(--primary-dark);
}

    .video-container video {
        width: 100%;
        height: auto;
        display: block;
    }

.video-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.3);
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    z-index: 1000;
    user-select: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

    .video-controls button {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: var(--white);
        padding: 0.5rem;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .video-controls button:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

/* Enhanced Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-justify {
    text-align: justify;
}

.text-primary {
    color: var(--accent-taupe) !important;
}

.text-secondary {
    color: var(--secondary-dark) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-info {
    color: var(--info) !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-white {
    color: var(--white) !important;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

.bg-dark {
    background-color: var(--primary-dark) !important;
}

.bg-white {
    background-color: var(--white) !important;
}

/* Spacing Utilities */
.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.me-0 {
    margin-left: 0 !important;
}

.me-1 {
    margin-left: 0.25rem !important;
}

.me-2 {
    margin-left: 0.5rem !important;
}

.me-3 {
    margin-left: 1rem !important;
}

.me-4 {
    margin-left: 1.5rem !important;
}

.me-5 {
    margin-left: 3rem !important;
}

.ms-0 {
    margin-right: 0 !important;
}

.ms-1 {
    margin-right: 0.25rem !important;
}

.ms-2 {
    margin-right: 0.5rem !important;
}

.ms-3 {
    margin-right: 1rem !important;
}

.ms-4 {
    margin-right: 1.5rem !important;
}

.ms-5 {
    margin-right: 3rem !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pt-1 {
    padding-top: 0.25rem !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pb-1 {
    padding-bottom: 0.25rem !important;
}

.pb-2 {
    padding-bottom: 0.5rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}

.pb-5 {
    padding-bottom: 3rem !important;
}

.pe-0 {
    padding-left: 0 !important;
}

.pe-1 {
    padding-left: 0.25rem !important;
}

.pe-2 {
    padding-left: 0.5rem !important;
}

.pe-3 {
    padding-left: 1rem !important;
}

.pe-4 {
    padding-left: 1.5rem !important;
}

.pe-5 {
    padding-left: 3rem !important;
}

.ps-0 {
    padding-right: 0 !important;
}

.ps-1 {
    padding-right: 0.25rem !important;
}

.ps-2 {
    padding-right: 0.5rem !important;
}

.ps-3 {
    padding-right: 1rem !important;
}

.ps-4 {
    padding-right: 1.5rem !important;
}

.ps-5 {
    padding-right: 3rem !important;
}

/* Display Utilities */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-flex {
    display: flex !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

.d-grid {
    display: grid !important;
}

/* Flexbox Utilities */
.flex-row {
    flex-direction: row !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-nowrap {
    flex-wrap: nowrap !important;
}

.justify-content-start {
    justify-content: flex-start !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-around {
    justify-content: space-around !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-baseline {
    align-items: baseline !important;
}

.align-items-stretch {
    align-items: stretch !important;
}

.align-self-start {
    align-self: flex-start !important;
}

.align-self-end {
    align-self: flex-end !important;
}

.align-self-center {
    align-self: center !important;
}

.align-self-baseline {
    align-self: baseline !important;
}

.align-self-stretch {
    align-self: stretch !important;
}

.flex-fill {
    flex: 1 1 auto !important;
}

.flex-grow-0 {
    flex-grow: 0 !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.flex-shrink-1 {
    flex-shrink: 1 !important;
}

/* Sizing Utilities */
.w-25 {
    width: 25% !important;
}

.w-50 {
    width: 50% !important;
}

.w-75 {
    width: 75% !important;
}

.w-100 {
    width: 100% !important;
}

.w-auto {
    width: auto !important;
}

.h-25 {
    height: 25% !important;
}

.h-50 {
    height: 50% !important;
}

.h-75 {
    height: 75% !important;
}

.h-100 {
    height: 100% !important;
}

.h-auto {
    height: auto !important;
}

.mw-100 {
    max-width: 100% !important;
}

.mh-100 {
    max-height: 100% !important;
}

/* Position Utilities */
.position-static {
    position: static !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.position-fixed {
    position: fixed !important;
}

.position-sticky {
    position: sticky !important;
}

/* Border Utilities */
.border {
    border: 1px solid var(--border-color) !important;
}

.border-0 {
    border: 0 !important;
}

.border-top {
    border-top: 1px solid var(--border-color) !important;
}

.border-right {
    border-right: 1px solid var(--border-color) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

.border-left {
    border-left: 1px solid var(--border-color) !important;
}

.rounded {
    border-radius: 0.375rem !important;
}

.rounded-0 {
    border-radius: 0 !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem var(--shadow-light) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem var(--shadow-light) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem var(--shadow-medium) !important;
}

.shadow-none {
    box-shadow: none !important;
}

/* Overflow Utilities */
.overflow-auto {
    overflow: auto !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.overflow-visible {
    overflow: visible !important;
}

.overflow-scroll {
    overflow: scroll !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.bounce-in {
    animation: bounceIn 0.8s ease-in-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    70% {
        transform: scale(0.9);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.zoom-in {
    animation: zoomIn 0.5s ease-in-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-taupe), #7a7066);
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #7a7066, var(--accent-taupe));
    }

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

        .navbar-collapse.show {
            display: block;
        }

    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid var(--border-color);
        margin-top: 0.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-lg {
        padding: 1rem;
        font-size: 1rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

        .footer .row {
            text-align: center;
        }

        .footer .col-md-4 {
            margin-bottom: 2rem;
        }

    .social-links {
        justify-content: center;
    }

    .btn-floating {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .main-content {
        padding: 1rem 0;
    }

    .video-container {
        border-radius: 8px;
    }

    .video-watermark {
        font-size: 18px;
        padding: 10px 20px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .navbar,
    .loading-overlay,
    .btn-floating,
    .video-controls {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }

    .main-content {
        padding: 0 !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-dark: #000000;
        --secondary-dark: #333333;
        --accent-taupe: #666666;
        --light-cream: #ffffff;
        --text-dark: #000000;
        --border-color: #000000;
    }

    .btn {
        border: 2px solid currentColor;
    }

    .card {
        border: 2px solid var(--border-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--accent-taupe);
    outline-offset: 2px;
}

.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--accent-taupe);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Enhanced Social Media Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

    /* Platform-specific colors on hover */
    .social-link:hover {
        transform: translateY(-3px) scale(1.1);
        color: var(--white);
        box-shadow: 0 8px 25px var(--shadow-medium);
        text-decoration: none;
    }

    /* Telegram */
    .social-link[href*="t.me"]:hover,
    .social-link[href*="telegram"]:hover {
        background: #0088cc;
        border-color: #0088cc;
        box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
    }

    /* YouTube */
    .social-link[href*="youtube"]:hover {
        background: #ff0000;
        border-color: #ff0000;
        box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    }

    /* Twitter */
    .social-link[href*="twitter"]:hover,
    .social-link[href*="x.com"]:hover {
        background: #1da1f2;
        border-color: #1da1f2;
        box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
    }

    /* Facebook */
    .social-link[href*="facebook"]:hover {
        background: #1877f2;
        border-color: #1877f2;
        box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
    }

    /* WhatsApp */
    .social-link[href*="wa.me"]:hover,
    .social-link[href*="whatsapp"]:hover {
        background: #25d366;
        border-color: #25d366;
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }

    .social-link::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
        z-index: 1;
    }

    .social-link:hover::before {
        width: 100%;
        height: 100%;
    }

    .social-link i {
        position: relative;
        z-index: 2;
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    .social-link:hover i {
        transform: scale(1.1);
    }

/* Contact methods styling */
.contact-method {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(148, 137, 121, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-taupe);
}

    .contact-method h6 {
        color: var(--primary-dark);
        margin-bottom: 0.5rem;
    }

    .contact-method a {
        color: var(--accent-taupe);
        text-decoration: none;
        font-weight: 500;
    }

        .contact-method a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

/* Visually Hidden */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
