:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* ===== NAVIGATION ===== */
.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #599bda, #284f61, #599bda) !important;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    z-index: 1030 !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    padding: 0.5rem 0;
    display: flex !important;
    align-items: center !important;
}

.navbar-brand i {
    color: #ff6b6b;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    margin-right: 0.5rem !important;
    font-size: 1.4rem !important;
}

.navbar-nav {
    align-items: center !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    margin: 0 0.125rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex !important;
    align-items: center !important;
}

.navbar-nav .dropdown-menu {
    position: absolute !important;
}

.navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    color: white !important;
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1em;
    opacity: 0.9;
    width: 16px !important;
    text-align: center !important;
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.nav-link.text-warning {
    color: #ffc107 !important;
    font-weight: 600;
}

.nav-link.text-warning:hover {
    color: #ffca2c !important;
    background: rgba(255, 193, 7, 0.15);
}

/* Search Bar */
.navbar .input-group {
    max-width: 400px;
    margin: 0 auto;
}

.navbar .form-control {
    border-radius: 8px 0 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.navbar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
    color: white;
}

.navbar .btn-light {
    border-radius: 0 8px 8px 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar .btn-light:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Dropdowns */
.navbar .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 0.5rem !important;
    animation: dropdownFadeIn 0.3s ease;
    z-index: 1050 !important;
}

.dropdown-menu {
    z-index: 1021;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.dropdown-menu > li:last-child {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    text-align: center;
}

.dropdown-menu > li:last-child .btn-link {
    font-size: 0.85rem;
    padding: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--primary-color);
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
}

.dropdown-menu > li:last-child .btn-link:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
    background: rgba(13, 110, 253, 0.05);
}


@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
    color: #333;
    display: flex !important;
    align-items: center !important;
}

.navbar .dropdown-item i {
    margin-right: 0.75rem !important;
    width: 16px !important;
    text-align: center !important;
}

.navbar .dropdown-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(3px);
}

.navbar .dropdown-header {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Specific Dropdowns */
#categoriesDropdown {
    min-width: 280px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

#categoriesDropdown .dropdown-item {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem;
}

#categoriesDropdown .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    background: linear-gradient(135deg, var(--primary-color), #0a58ca);
}

/* Notifications */
#notificationsDropdown {
    position: relative;
    background: none;
    border: none;
    color: inherit;
}

#notificationsDropdown .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
    border: 2px solid var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

#notificationsDropdown + .dropdown-menu {
    width: 350px;
    max-height: 400px;
    overflow-x: hidden !important;
    overflow-y: auto;
    padding: 0;
    position: absolute !important;
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    top: 100% !important;
    margin-top: 0.5rem !important;
    z-index: 1051 !important;
}

#notificationsDropdown + .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

#notificationsDropdown + .dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
    margin: 5px 0;
}

#notificationsDropdown + .dropdown-menu::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

#notificationsDropdown + .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}


#notificationsContainer {
    overflow-x: hidden !important;
    width: 100%;
    overflow-y: auto;
}

#notificationsContainer .dropdown-item {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 1rem;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
    background: transparent !important;
    width: calc(100% - 1rem);
}

#notificationsContainer .dropdown-item .d-flex {
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
}

#notificationsContainer .dropdown-item .flex-grow-1 {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    max-width: calc(100% - 40px);
}

#notificationsContainer .dropdown-item .position-absolute {
    left: 0.5rem;
    top: 1rem;
    z-index: 1;
}

#notificationsContainer .dropdown-item h6 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

#notificationsContainer .dropdown-item p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#notificationsContainer .dropdown-item small {
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0.5rem;
    color: #6c757d;
}

#notificationsContainer .dropdown-item.unread {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.02)) !important;
}

#notificationsContainer .dropdown-item:hover {
    color: var(--primary-color) !important;
    background: rgba(13, 110, 253, 0.1) !important;
    transform: translateX(3px);
}

#notificationsContainer .text-center {
    padding: 2rem 1rem;
    color: #6c757d;
}

#notificationsContainer .text-center i {
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

#notificationsContainer .text-success.fw-semibold {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    word-break: keep-all;
}

#notificationsContainer .dropdown-item .text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.dropdown-menu .dropdown-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#markAllReadBtn {
    font-size: 0.8rem;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

#markAllReadBtn:hover {
    background: rgba(13, 110, 253, 0.1);
    text-decoration: none;
}


/* Navbar Toggler */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #599bda, #284f61, #599bda);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::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 1000 1000" opacity="0.03"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image-container {
    position: relative;
    z-index: 2;
}

.floating-badge {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.trust-badges {
    border-left: 3px solid rgba(255,255,255,0.3);
    padding-left: 15px;
}

/* ===== CARDS ===== */
.card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #599bda !important;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

/* Campaign Updates in detail.html */
.update-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
}

.update-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.update-content {
    line-height: 1.6;
    color: #495057;
}

.update-content p {
    margin-bottom: 1rem;
}

.gallery-image {
    transition: transform 0.2s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.image-gallery {
    max-height: 300px;
    overflow-y: auto;
}

/* Campaign Cards */
.campaign-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.campaign-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.card-image-container {
    overflow: hidden;
}

.campaign-card .card-img-top {
    transition: transform 0.5s ease;
}

.campaign-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-overlay {
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.campaign-card:hover .card-overlay {
    opacity: 1;
}

.progress-section {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    margin: 0 -0.75rem;
}

/* Stats Cards */
.stats-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(136deg, #599bda, #2e465d) !important;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #599bda, #5195d4, #599bda) !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgb(133, 184, 247);
}

/* Button Groups */
.btn-group input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== FORMS ===== */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback,
.is-invalid ~ .char-counter + .invalid-feedback {
    display: block;
}

/* Media Upload */
.media-upload-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.media-preview {
    position: relative;
    display: inline-block;
    margin: 5px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.media-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
}

.media-preview .remove-media {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.media-preview .file-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 5px;
    font-size: 11px;
    text-align: center;
}

.existing-media .file-label {
    background: rgba(0, 123, 255, 0.8);
}

.new-media .file-label {
    background: rgba(40, 167, 69, 0.8);
}

/* ===== ALERTS & MODALS ===== */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

/* Custom Alerts */
.custom-alert {
    min-width: 250px;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid transparent;
    animation: slideIn 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-alert.success {
    background: linear-gradient(135deg, #e6f9ed, #d4f4e3);
    border-color: #b8eac9;
    color: #256d3d;
}

.custom-alert.error {
    background: linear-gradient(135deg, #fdeaea, #f9dede);
    border-color: #f5c2c2;
    color: #842029;
}

.custom-alert.warning {
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    border-color: #ffe58f;
    color: #664d03;
}

.custom-alert.info {
    background: linear-gradient(135deg, #e6f4ff, #cce9ff);
    border-color: #91d5ff;
    color: #055160;
}

.custom-alert .close-btn {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
}

.fade-out {
    opacity: 0 !important;
    transition: opacity 0.4s ease;
}

/* Modals */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
}

/* ===== CONTENT SECTIONS ===== */
/* Campaign Story */
.campaign-story {
    line-height: 1.8;
}

.campaign-story h1, .campaign-story h2, .campaign-story h3 {
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.campaign-story h1 {
    font-size: 2rem;
}

.campaign-story h2 {
    font-size: 1.75rem;
}

.campaign-story h3 {
    font-size: 1.5rem;
}

.campaign-story p {
    margin-bottom: 1rem;
    color: #495057;
}

.campaign-story img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Legal Content */
.legal-content {
    line-height: 1.6;
}

.legal-content h2 {
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.legal-content h5 {
    color: #495057;
    margin-top: 1rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content a {
    color: #0d6efd;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ===== PROGRESS & STEPS ===== */
.step-circle {
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-circle:hover {
    transform: scale(1.1);
}

.step.completed .step-circle {
    background: #198754;
    color: white;
    cursor: pointer;
}

.step.active .step-circle {
    background: #0d6efd;
    color: white;
    cursor: pointer;
}

.step:not(.active):not(.completed) .step-circle {
    cursor: not-allowed;
}

.progress-steps {
    flex-wrap: wrap;
    justify-content: center;
}

.step {
    margin-bottom: 1rem;
}

.step-label {
    font-size: 0.75rem;
}

/* ===== BADGES ===== */
.badge {
    font-weight: 500;
    border-radius: 6px;
    padding: 0.5em 0.75em;
}

.bg-steelblue {
    color: #6ca7df;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ===== STICKY ELEMENTS ===== */
.sticky-top {
    position: sticky;
    z-index: 1020 !important;
}

.card.sticky-top[style*="top: 20px"] {
    z-index: 1020 !important;
}

/* ===== FOOTER ===== */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--info-color) !important;
}

.index-footer {
    background: linear-gradient(135deg, #599bda, #284f61, #599bda) !important;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ===== LOADING STATES ===== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner-border {
    color: var(--primary-color);
}

.navbar .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.stats-skeleton-container {
    text-align: center;
}

.stats-number-skeleton {
    height: 2.5rem;
    width: 80px;
    margin: 0 auto;
}

.stats-label-skeleton {
    height: 1rem;
    width: 100px;
    margin: 0 auto;
}

.category-skeleton {
    border: none;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 150px;
}

.category-icon-skeleton {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto;
}

.category-title-skeleton {
    height: 1.25rem;
    width: 120px;
    margin: 0 auto;
}

.category-count-skeleton {
    height: 1rem;
    width: 80px;
    margin: 0 auto;
}

.activity-skeleton {
    border-left: 3px solid #f0f0f0;
    padding-left: 15px;
    margin-bottom: 15px;
}

.activity-icon-skeleton {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.activity-text-skeleton {
    height: 0.875rem;
    width: 100%;
}

.activity-time-skeleton {
    height: 0.75rem;
    width: 60px;
}

.campaign-skeleton {
    border-radius: 12px;
    padding: 1rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    margin-bottom: 1rem;
}

.skeleton-image {
    height: 200px;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.skeleton-button {
    height: 2.5rem;
    width: 100%;
    border-radius: 8px;
}

.stats-skeleton {
    height: 3rem;
    width: 80%;
    margin: 0 auto;
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.navbar .nav-link:focus-visible,
.navbar .dropdown-toggle:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
    border-radius: 6px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    .navbar-collapse .dropdown-menu {
        position: static !important;
        width: 100% !important;
        margin: 0.5rem 0 !important;
    }

    .navbar-collapse {
        background: linear-gradient(135deg, #599bda, #284f61, #599bda) !important;
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        z-index: 1040 !important;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 1rem !important;
        text-align: center;
        justify-content: center !important;
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin: 0.5rem 0 !important;
    }
    
    .input-group {
        margin: 1rem 0;
    }
    
    .d-lg-none .form-control {
        background: rgba(255, 255, 255, 0.9);
        color: var(--dark-color);
    }
    
    .d-lg-none .form-control::placeholder {
        color: var(--secondary-color);
    }
    
    .d-lg-none .btn-light {
        background: white;
        color: var(--primary-color);
    }

    #notificationsDropdown + .dropdown-menu {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .campaign-card:hover {
        transform: none;
    }
    
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .sticky-top {
        position: relative;
    }
    
    .trust-badges {
        border-left: none;
        padding-left: 0;
        justify-content: center;
    }
    
    .card-overlay {
        opacity: 1;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .stats-number-skeleton {
        height: 2rem;
        width: 60px;
    }
    
    .stats-label-skeleton {
        height: 0.875rem;
        width: 80px;
    }
    
    .category-icon-skeleton {
        width: 50px;
        height: 50px;
    }
    
    .category-title-skeleton {
        height: 1.125rem;
        width: 100px;
    }
    
    .category-count-skeleton {
        height: 0.875rem;
        width: 70px;
    }
}

@media (max-width: 576px) {
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 6px !important;
        margin-bottom: 0.5rem;
    }
    
    .modal-dialog {
        margin: 1rem 0.5rem;
    }
    
    .stats-card {
        padding: 1rem 0.5rem;
    }
    
    .stats-number {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 0.875rem !important;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
    }

    .dropdown-menu .dropdown-header {
        padding: 0.75rem 0.875rem !important;
        font-size: 0.9rem !important;
    }
    
    #notificationsDropdown + .dropdown-menu {
        width: calc(100vw - 2rem) !important;
        max-height: 70vh !important;
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        top: 60px !important;
        margin-top: 0 !important;
    }

    #notificationsContainer {
        max-height: 60vh !important;
    }
    
    #notificationsContainer .dropdown-item {
        padding: 0.875rem 0.75rem !important;
        margin: 0.25rem 0.375rem !important;
        width: calc(100% - 0.75rem) !important;
    }

    #notificationsContainer .dropdown-item .d-flex {
        align-items: flex-start !important;
    }

    #notificationsContainer .dropdown-item .flex-grow-1 {
        max-width: calc(100% - 30px) !important;
    }
    
     #notificationsContainer .dropdown-item h6 {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
    }
    
    #notificationsContainer .dropdown-item p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        max-height: 2.6em !important;
        line-clamp: 2 !important;
        -webkit-line-clamp: 2 !important;
    }
    
    #notificationsContainer .dropdown-item small {
        font-size: 0.7rem !important;
        margin-left: 0.25rem !important;
    }
    
    .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .btn-group-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    #prev-btn, #next-btn, #submit-btn {
        width: 100%;
    }

    #markAllReadBtn {
        font-size: 0.75rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

@media (min-width: 577px) and (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: absolute !important;
    }
    
    #notificationsDropdown + .dropdown-menu {
        right: 0 !important;
        left: auto !important;
        transform: none !important;
    }
}

@media (max-width: 360px) {
    #notificationsDropdown + .dropdown-menu {
        width: calc(100vw - 1rem) !important;
        max-height: 80vh !important;
    }
    
    #notificationsContainer .dropdown-item {
        padding: 0.75rem 0.5rem !important;
        margin: 0.125rem 0.25rem !important;
        width: calc(100% - 0.5rem) !important;
    }
    
    #notificationsContainer .dropdown-item h6 {
        font-size: 0.8rem !important;
    }
    
    #notificationsContainer .dropdown-item p {
        font-size: 0.75rem !important;
        -webkit-line-clamp: 2 !important;
    }
}

.navbar-nav .nav-link {
    padding: 0.75rem 0.75rem !important;
    font-size: 0.95rem;
}

.navbar-nav .nav-link i {
    margin-right: 0.4rem;
    font-size: 1em;
}

@media (min-width: 992px) {
    .navbar-nav > .nav-item:last-child,
    .navbar-nav > .nav-item:nth-last-child(2) {
        margin-left: 0.5rem;
    }
}

.navbar-expand-lg .navbar-nav {
    flex-wrap: nowrap;
}

@media (max-width: 1400px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        height: 45px !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0.6rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 1200px) {
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.875rem;
    }
    
    .navbar-nav .dropdown-toggle .d-none.d-md-inline {
        display: none !important;
    }
}

.navbar-nav .nav-link {
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 220px;
}

@media (min-width: 1400px) {
    .navbar-nav .nav-link {
        max-width: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .btn,
    .modal,
    .alert {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* ===== INTERACTION STATES ===== */
#prev-btn:hover {
    transform: translateX(-2px);
    transition: transform 0.2s ease;
}

#next-btn:hover, #submit-btn:hover {
    transform: translateX(2px);
    transition: transform 0.2s ease;
}