/* ===== GLOBAL STYLES ===== */
body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #f8b803 0%, #f53003 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== THEME VARIABLES ===== */
:root {
    --accent: #f53003;
    /* primary accent */
    --accent-2: #f8b803;
    /* secondary accent */
    --accent-muted: rgba(245, 48, 3, 0.15);
}

/* ===== NAVBAR STYLING ===== */
.navbar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(245, 48, 3, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: #fff !important;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .navbar-brand {
    color: #f53003 !important;
    text-shadow: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-link {
    color: #333 !important;
    text-shadow: none;
}

.nav-link:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

.navbar.scrolled .nav-link:hover {
    color: #f53003 !important;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .navbar-toggler {
    border: 1px solid rgba(245, 48, 3, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.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(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .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(245, 48, 3, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== MAIN CONTENT AREA ===== */
main {
    margin-top: 80px;
    flex: 1;
}

/* ===== FOOTER STYLING ===== */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
}

/* ===== AUTH-SPECIFIC STYLES ===== */
.auth-container {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 100%;
    padding: 2rem;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo i {
    font-size: 3rem;
    color: #f53003;
    margin-bottom: 1rem;
}

.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* ===== FORM STYLING ===== */

.text-default {
    color: #cf9801 !important;
}

Label {
    margin-bottom: 0px;
    /* margin-left: 5px; */
    color: #cf9801 !important;
    font-weight: 600 !important;
    font-size: .9rem;
    font-style: italic;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #f8b803;
    box-shadow: 0 0 0 0.2rem rgba(245, 48, 3, 0.25);
    box-shadow: none !important;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #6c757d;
}

.btn-primary {
    background: linear-gradient(135deg, #f8b803 0%, #f53003 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 48, 3, 0.3);
}

.form-check-input:checked {
    background-color: #f53003;
    border-color: #f53003;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: #f53003;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #f8b803;
}

.alert {
    border-radius: 10px;
    border: none;
}

.invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
}

.back-btn-theme {
    background: linear-gradient(135deg, #f8b803 0%, #f53003 100%);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(245, 48, 3, 0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    max-width: 120px;
}

.back-btn-theme:hover,
.back-btn-theme:focus {
    background: linear-gradient(135deg, #f53003 0%, #f8b803 100%);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(245, 48, 3, 0.16);
}

/* ===== WELCOME PAGE STYLES ===== */
.hero {
    background: transparent;
    color: #fff;
    padding: 60px 0 80px 0;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.hero .btn-primary {
    background: #fff;
    color: #f53003;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero .btn-primary:hover {
    background: #f53003;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero .btn-outline-light {
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero .btn-outline-light:hover {
    background: #fff;
    color: #f53003;
    transform: translateY(-2px);
}

.profile-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    /* text-align: center; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(245, 48, 3, 0.1);
    height: 100%;
}

.sideway-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    /* text-align: center; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(245, 48, 3, 0.1);
}


.features-section {
    background: #f8f9fa;
}

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(245, 48, 3, 0.1);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(245, 48, 3, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8b803 0%, #f53003 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
    font-size: 2rem;
}

.feature-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-text {
    color: #666;
    line-height: 1.6;
}

/* ===== DOWNLOAD PAGE STYLES ===== */
.download-hero {
    background: linear-gradient(135deg, #f8b803 0%, #f53003 100%);
    color: #fff;
    padding: 80px 0 60px 0;
    position: relative;
    overflow: hidden;
}

.download-hero::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.download-hero .container {
    position: relative;
    z-index: 2;
}

.download-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.download-section {
    background: #f8f9fa;
}

.download-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(245, 48, 3, 0.1);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(245, 48, 3, 0.15);
}

.download-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.download-icon-small {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8b803 0%, #f53003 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.download-content {
    flex: 1;
}

.download-content h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.download-content p {
    margin-bottom: 1rem;
}

.download-grid {
    display: grid;
    gap: 1.5rem;
}

/* Tab Styling */
.download-tabs {
    border-bottom: 2px solid rgba(245, 48, 3, 0.2);
    margin-bottom: 2rem;
}

.download-tabs .nav-link {
    color: #f53003 !important;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
    position: relative;
    margin-right: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.download-tabs .nav-link:hover {
    color: #f53003;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 48, 3, 0.15);
}

.download-tabs .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, #f8b803 0%, #f53003 100%);
    border-bottom: 3px solid #f53003;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 48, 3, 0.3);
}

/* Tab Content */
.tab-content {
    background: #fff;
    border-radius: 0 0 20px 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(245, 48, 3, 0.1);
}

/* Download Meta Information */
.download-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.file-size,
.file-type {
    background: rgba(245, 48, 3, 0.1);
    color: #f53003;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.file-type {
    background: rgba(248, 184, 3, 0.1);
    color: #f8b803;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    main {
        margin-top: 70px;
    }

    .auth-container {
        min-height: calc(100vh - 140px);
        padding: 15px;
    }

    .download-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .download-item {
        flex-direction: column;
        text-align: center;
    }

    .download-icon-small {
        margin-bottom: 1rem;
    }

    .download-meta {
        justify-content: center;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .hero {
        padding: 40px 0 60px 0;
    }

    .hero-icon {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .download-tabs {
        flex-wrap: wrap;
    }

    .download-tabs .nav-item {
        flex: 1;
        min-width: 120px;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .download-card {
        padding: 1.5rem;
    }
}

/* ===== DROPDOWN NAVIGATION STYLING ===== */
.navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 48, 3, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 250px;
}

.navbar .dropdown-menu .dropdown-header {
    color: #f53003;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.navbar .dropdown-menu .dropdown-item {
    color: #333;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background: rgba(245, 48, 3, 0.1);
    color: #f53003;
}

.navbar .dropdown-menu .dropdown-item.text-warning:hover {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.navbar .dropdown-menu .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.navbar .dropdown-menu .dropdown-divider {
    border-color: rgba(245, 48, 3, 0.1);
    margin: 0.5rem 0;
}

.navbar .dropdown-menu button.dropdown-item {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

/* User dropdown toggle styling */
.navbar .nav-link.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Scrolled navbar dropdown adjustments */
.navbar.scrolled .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(245, 48, 3, 0.15);
}

/* ===== PAGINATION STYLES ===== */
.pagination-container {
    background: rgba(248, 184, 3, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(248, 184, 3, 0.1);
    gap: 0.5rem;
}

.pagination-results {
    color: #666;
    font-weight: 500;
}

.pagination-results h6 {
    color: #333;
    font-weight: 600;
}

.pagination-summary {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Enhanced pagination styling with theme variables */
.pagination.pagination-custom {
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination.pagination-custom .page-link {
    border: 2px solid #e9ecef;
    border-radius: 10px !important;
    color: #6c757d;
    padding: 0.625rem 1rem;
    margin: 0 0.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
    min-width: 45px;
    text-align: center;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.pagination.pagination-custom .page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-muted), transparent);
    transition: left 0.5s;
}

.pagination.pagination-custom .page-link:hover::before {
    left: 100%;
}

.pagination.pagination-custom .page-link:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-muted);
}

.pagination.pagination-custom .page-item.active .page-link {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 6px 20px var(--accent-muted);
    transform: translateY(-2px);
    font-weight: 600;
}

.pagination.pagination-custom .page-item.active .page-link::before {
    display: none;
}

.pagination.pagination-custom .page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination.pagination-custom .page-item.disabled .page-link::before {
    display: none;
}

/* Navigation buttons (Previous/Next) */
.pagination.pagination-custom .page-item:first-child .page-link,
.pagination.pagination-custom .page-item:last-child .page-link {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
    padding: 0.625rem 1.25rem;
}

.pagination.pagination-custom .page-item:first-child .page-link:hover,
.pagination.pagination-custom .page-item:last-child .page-link:hover {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
    color: #fff;
    border-color: var(--accent);
}

.pagination.pagination-custom .page-item.disabled:first-child .page-link,
.pagination.pagination-custom .page-item.disabled:last-child .page-link {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #adb5bd;
    transform: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .pagination.pagination-custom {
        gap: 0.125rem;
    }

    .pagination.pagination-custom .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        min-width: 40px;
        margin: 0 0.0625rem;
    }

    .pagination.pagination-custom .page-item:first-child .page-link,
    .pagination.pagination-custom .page-item:last-child .page-link {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .pagination.pagination-custom .page-link {
        padding: 0.375rem 0.625rem;
        font-size: 0.8rem;
        min-width: 35px;
    }

    .pagination.pagination-custom .page-item:first-child .page-link,
    .pagination.pagination-custom .page-item:last-child .page-link {
        padding: 0.375rem 0.75rem;
    }
}