body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.electoral-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 50px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    gap: 50px;
    /* max-width: 1400px; */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.electoral-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.electoral-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.banner-content {
    flex: 2;
    z-index: 2;
}

.banner-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.banner-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.8s ease-out;
}

.banner-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 35px;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.btn-observer {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 20px var(--primary-color-hover);
    position: relative;
    overflow: hidden;
}

.btn-observer::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;
}

.btn-observer:hover::before {
    left: 100%;
}

.btn-observer:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--primary-color-hover);
    color: white;
    text-decoration: none;
}

.btn-observer:active {
    transform: translateY(0);
}

.btn-report {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 16px 33px;
    border-radius: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 20px var(--primary-color-hover);
    position: relative;
    overflow: hidden;
}

.btn-report::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s;
    z-index: -1;
}

.btn-report:hover::before {
    left: 0;
}

.btn-report:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--primary-color-hover);
    text-decoration: none;
    border-color: var(--primary-color);
}

.btn-report:active {
    transform: translateY(0);
}

.knight-placeholder {
    width: 320px;
    height: 360px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 20px; */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: slideInRight 0.8s ease-out 0.3s both;
}

.knight-placeholder:hover {
    transform: scale(1.05);
}

.knight-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

.knight-image:hover {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}

/* Butoane personalizate cu gradient */
.btn-custom-primary {
background: linear-gradient(135deg, #ea5b2b 0%, #ff8c00 100%);
border: none;
color: white;
box-shadow: 0 4px 15px rgba(234, 91, 43, 0.3);
}

.btn-custom-primary:hover {
background: linear-gradient(135deg, #ff8c00 0%, #ea5b2b 100%);
color: white;
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(234, 91, 43, 0.5);
}

.btn-custom-danger {
background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
border: none;
color: white;
box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-custom-danger:hover {
background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
color: white;
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .electoral-banner {
        padding: 40px;
        gap: 40px;
        margin: 30px auto;
    }
    
    .banner-title {
        font-size: 30px;
    }
    
    .banner-text {
        font-size: 17px;
    }
    
    .btn-observer,
    .btn-report {
        padding: 16px 30px;
        font-size: 15px;
    }
    
    .knight-placeholder {
        width: 280px;
        height: 320px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
    .container {
        --bs-gutter-x: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-left: 0.5rem !important;
    }
    /* .container-fluid {
        --bs-gutter-x: 0rem !important;
        padding-right: 0rem !important;
        padding-left: 0rem !important;
    } */
    .row {
        --bs-gutter-x: 0rem !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .electoral-banner {
        flex-direction: column;
        text-align: center;
        gap: 35px;
        border-radius: 15px;
    }
    
    .banner-content {
        order: 2;
    }
    
    .banner-illustration {
        order: 1;
        margin-bottom: 20px;
    }
    
    .banner-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .banner-text {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .banner-buttons {
        justify-content: center;
        gap: 15px;
    }
    
    .btn-observer,
    .btn-report {
        padding: 15px 28px;
        font-size: 15px;
    }
    
    .knight-placeholder {
        width: 240px;
        height: 280px;
    }
}

/* Small mobile */
@media (max-width: 480px) {

    
    .banner-title {
        font-size: 24px;
    }
    
    .banner-text {
        font-size: 15px;
    }
    
    .banner-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-observer,
    .btn-report {
        width: 240px;
        text-align: center;
        padding: 14px 25px;
    }
    
    .knight-placeholder {
        width: 200px;
        height: 240px;
    }
}

/* Categories and Incidents Section */
.categories-panel {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.categories-list {
    max-height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Styles for scrollbar */
.categories-list::-webkit-scrollbar {
    width: 8px;
}

.categories-list::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 10px;
}

.categories-list::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

.categories-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gradient-hover);
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.categories-title {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.total-reports {
    text-align: center;
}

.total-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.total-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: rgba(84, 109, 199, 0.1);
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

.category-item.category-selected {
    background: rgba(84, 109, 199, 0.2);
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
    border-left: 4px solid var(--primary-color);
}

.category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.category-name {
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-count {
    background: var(--primary-gradient);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.category-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.category-progress {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Incidents Panel */
.incidents-panel {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.incidents-title {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.incident-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.incident-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.incident-content {
    display: flex;
    gap: 15px;
    padding: 15px;
}

.incident-image {
    position: relative;
    flex-shrink: 0;
}

.image-placeholder {
    width: 100px;
    height: 80px;
    background: #e9ecef;
    border: 2px dashed #adb5bd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.5rem;
}

.incident-votes {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #495057;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.incident-details {
    flex: 1;
    min-width: 0;
}

.incident-header {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #6c757d;
}

.incident-date,
.incident-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.incident-title {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.incident-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    width: fit-content;
}

.incident-location {
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pagination*/
.incidents-pagination {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.pagination .page-link {
    border-color: #e9ecef;
    padding: 8px 12px;
    font-size: 0.85rem;
}


/* Grid Layout for Incidents */
.incidents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.incident-grid-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.incident-grid-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* Links to incident details */
.text-decoration-none {
    text-decoration: none !important;
    color: inherit;
}

.text-decoration-none:hover {
    text-decoration: none !important;
    color: inherit;
}

.incident-grid-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #f8fafc;
}

.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.grid-image-fallback {
    width: 100%;
    height: 100%;

    object-fit: contain;
    transition: transform 0.3s ease;
}


.incident-grid-card:hover .grid-image {
    transform: scale(1.05);
}

.grid-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
    font-size: 2rem;

}


.incident-grid-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.incident-grid-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.75rem;
    color: #6c757d;
}

.incident-grid-date,
.incident-grid-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.incident-grid-title {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.incident-grid-meta {
    margin-top: auto;
}

.incident-grid-location {
    color: #6c757d;
    font-size: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.incident-grid-location i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Responsive for categories and incidents section */
@media (max-width: 992px) {
    .categories-panel {
        position: static;
        margin-bottom: 30px;
    }
    
    .categories-list {
        max-height: 500px;
    }
    
    .incidents-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 15px;
    }
    
    .incident-grid-image {
        height: 200px;
    }
    
    .incident-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .incident-image {
        align-self: center;
    }
    
    .incident-header {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .categories-panel,
    .incidents-panel {
        padding: 20px;
        border-radius: 10px;
    }
    
    .categories-list {
        max-height: 400px;
    }
    
    .incidents-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 12px;
    }
    
    .incident-grid-image {
        height: 200px;
    }
    
    .incident-grid-content {
        padding: 12px;
    }
    
    .incident-grid-title {
        font-size: 0.85rem;
    }
    
    .incident-card {
        margin-bottom: 12px;
    }
    
    .incident-content {
        padding: 12px;
    }
    
    .image-placeholder {
        width: 80px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .incident-title {
        font-size: 0.9rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
}

/* Election Information Cards */
.election-info-section {
    margin: 30px 0;
}

.info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: height 0.3s ease;
}

.info-card-blue::before {
    background: linear-gradient(135deg, #546dc7 0%, #3b5998 100%);
}

.info-card-orange::before {
    background: linear-gradient(135deg, #ff8c00 0%, #ea5b2b 100%);
}

.info-card-gold::before {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.info-card:hover::before {
    height: 5px;
}

.info-card-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.info-card-blue .info-card-icon {
    background: linear-gradient(135deg, #546dc7 0%, #3b5998 100%);
}

.info-card-orange .info-card-icon {
    background: linear-gradient(135deg, #ff8c00 0%, #ea5b2b 100%);
}

.info-card-gold .info-card-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
}

.info-card:hover .info-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.info-card-content {
    flex: 1;
}

.info-card-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.info-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    border: 2px solid transparent;
}

.info-card-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.info-card-btn:hover i {
    transform: translateX(3px);
}

.info-card-btn-blue {
    background: linear-gradient(135deg, #546dc7 0%, #3b5998 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(84, 109, 199, 0.3);
}

.info-card-btn-blue:hover {
    background: linear-gradient(135deg, #3b5998 0%, #546dc7 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(84, 109, 199, 0.5);
}

.info-card-btn-orange {
    background: linear-gradient(135deg, #ff8c00 0%, #ea5b2b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.info-card-btn-orange:hover {
    background: linear-gradient(135deg, #ea5b2b 0%, #ff8c00 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 140, 0, 0.5);
}

.info-card-btn-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #2c3e50;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.info-card-btn-gold:hover {
    background: linear-gradient(135deg, #ffb700 0%, #ffd700 100%);
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.5);
}

.info-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.info-card-subtitle {
    font-size: 1rem;
    color: #495057;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-card-date {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.info-card-text {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

.info-card-dates {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 4px 0;
    border-bottom: 1px solid #f1f3f4;
}

.date-item:last-child {
    border-bottom: none;
}

.date-label {
    color: #6c757d;
    font-weight: 500;
}

.date-value {
    color: #2c3e50;
    font-weight: 600;
}

/* Fixed Vertical Banner for countdown */
.fixed-vertical-banner {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    animation: slideInFromRight 0.8s ease-out;
}

.vertical-banner-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid #e9ecef;
    width: 180px;
    position: relative;
    overflow: hidden;
}

.vertical-banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.banner-countdown {
    text-align: center;
    margin-bottom: 20px;
}

.countdown-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.countdown-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.countdown-label {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-date {
    font-size: 0.75rem;
    color: #495057;
    font-weight: 500;
}

.banner-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
    margin: 20px 0;
}

.banner-action {
    margin-bottom: 12px;
}

.banner-action:last-of-type {
    margin-bottom: 0;
}

.vertical-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vertical-btn i {
    font-size: 1.5rem;
}

.vertical-btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(234, 91, 43, 0.3);
}

.vertical-btn-primary:hover {
    background: var(--primary-gradient-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(234, 91, 43, 0.5);
}

.vertical-btn-secondary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(84, 109, 199, 0.2);
}

.vertical-btn-secondary:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(84, 109, 199, 0.4);
}

.banner-pulse {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Responsive vertical banner for countdown */
@media (max-width: 1400px) {
    .fixed-vertical-banner {
        right: 10px;
    }
    
    .vertical-banner-content {
        width: 160px;
        padding: 20px 15px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
}

@media (max-width: 1200px) {
    .fixed-vertical-banner {
        right: 15px;
        top: auto;
        bottom: 25px;
        transform: none;
    }
    
    .vertical-banner-content {
        width: 140px;
        padding: 15px 12px;
    }
    
    .countdown-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    .countdown-date {
        font-size: 0.7rem;
    }
    
    .vertical-btn {
        padding: 12px 8px;
        font-size: 0.7rem;
        gap: 6px;
    }
    
    .vertical-btn i {
        font-size: 1.2rem;
    }
    
    .banner-divider {
        margin: 15px 0;
    }
}

/* Banner mini FAB hidden by default*/
.banner-mini-fab {
    display: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 18px rgba(234, 91, 43, 0.45);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: pulse 2s ease-in-out infinite;
}
.banner-mini-fab:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(234,91,43,.6); }

@media (max-width: 768px) {
    .fixed-vertical-banner {
        right: 10px;
        bottom: 80px;
        transition: all 0.3s ease;
    }

    /* Collapsed state: hide content, show FAB */
    .fixed-vertical-banner.banner-mini .vertical-banner-content {
        display: none;
    }
    .fixed-vertical-banner.banner-mini .banner-mini-fab {
        display: flex;
    }

    .vertical-banner-content {
        width: 120px;
        padding: 12px 10px;
        border-radius: 15px;
        /* Animation for expand */
        animation: bannerExpand 0.25s ease-out;
    }
    @keyframes bannerExpand {
        from { opacity: 0; transform: scale(0.8) translateY(10px); }
        to   { opacity: 1; transform: scale(1) translateY(0); }
    }
    
    .banner-countdown {
        margin-bottom: 12px;
    }
    
    .countdown-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .countdown-date {
        font-size: 0.65rem;
    }
    
    .banner-divider {
        margin: 12px 0;
    }
    
    .banner-action {
        margin-bottom: 8px;
    }
    
    .vertical-btn {
        padding: 10px 6px;
        font-size: 0.65rem;
        gap: 5px;
        border-radius: 10px;
    }
    
    .vertical-btn i {
        font-size: 1rem;
    }
    
    .vertical-btn span {
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .fixed-vertical-banner {
        right: 20px;
        bottom: 80px;
    }
    
    .vertical-banner-content {
        width: 100px;
        padding: 10px 8px;
        border-radius: 12px;
    }
    
    .banner-countdown {
        margin-bottom: 10px;
    }
    
    .countdown-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .countdown-number {
        font-size: 1.3rem;
    }
    
    .countdown-label {
        font-size: 0.55rem;
    }
    
    .countdown-date {
        font-size: 0.6rem;
    }
    
    .banner-divider {
        margin: 10px 0;
    }
    
    .banner-action {
        margin-bottom: 6px;
    }
    
    .vertical-btn {
        padding: 8px 5px;
        font-size: 0.6rem;
        gap: 4px;
        border-radius: 8px;
    }
    
    .vertical-btn i {
        font-size: 0.9rem;
    }
    
    .banner-pulse {
        width: 8px;
        height: 8px;
    }
}

/* Responsive for informative cards */
@media (max-width: 992px) {
    .info-card {
        padding: 18px;
    }
    
    .info-card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .info-card-title {
        font-size: 0.95rem;
    }
    
    .info-card-footer {
        padding-top: 12px;
    }
    
    .info-card-btn {
        padding: 9px 18px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .election-info-section {
        margin: 20px 0;
    }
    
    .info-card {
        padding: 15px;
        gap: 12px;
    }
    
    .info-card-header {
        gap: 12px;
    }
    
    .info-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .info-card-title {
        font-size: 0.9rem;
    }
    
    .info-card-subtitle,
    .info-card-date,
    .info-card-text {
        font-size: 0.8rem;
    }
    
    .date-item {
        font-size: 0.75rem;
    }
    
    .info-card-footer {
        padding-top: 10px;
    }
    
    .info-card-btn {
        padding: 8px 15px;
        font-size: 0.75rem;
        gap: 6px;
    }
}

@media (max-width: 576px) {
    .info-card-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .date-item {
        justify-content: center;
        gap: 10px;
    }
    
    .info-card-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
    
    .info-card-btn span {
        display: inline;
    }
}

/* ═══════════════════════════════════════════════════════════
   MONITORING STATS CARDS
   ═══════════════════════════════════════════════════════════ */
.monitoring-stats-section {
    padding: 10px 0;
}

.stat-mon-card {
    background: #fff;
    border-radius: 22px;
    padding: 34px 26px 22px;
    border: 1.5px solid #d1d5db;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.10);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.stat-mon-card:hover {
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.16);
    border-color: #9ca3af;
    transform: translateY(-4px);
}

/* Icon circles — large & centered */
.stat-mon-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.stat-mon-blue   .stat-mon-icon { background: #dbeafe; color: #2563eb; }
.stat-mon-green  .stat-mon-icon { background: #dcfce7; color: #16a34a; }
.stat-mon-teal   .stat-mon-icon { background: #ccfbf1; color: #0d9488; }
.stat-mon-purple .stat-mon-icon { background: #ede9fe; color: #6d28d9; }
.stat-mon-red    .stat-mon-icon { background: #fee2e2; color: #dc2626; }

/* Label */
.stat-mon-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.45;
    margin-bottom: 12px;
    min-height: 4.4em;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main value */
.stat-mon-value {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
    color: #111827;
}

.stat-mon-green .stat-mon-value { color: #16a34a; }
.stat-mon-red .stat-mon-value { color: #dc2626; }
.stat-mon-purple .stat-mon-value { color: #6d28d9; }
.stat-mon-blue .stat-mon-value { color: #2563eb; }
.stat-mon-teal .stat-mon-value { color: #0d9488; }

.stat-mon-value .stat-mon-denom {
    font-size: 1.3rem;
    font-weight: 500;
    color: #9ca3af;
}

/* Progress bar — full width */
.stat-mon-progress {
    height: 20px;
    border-radius: 20px;
    background: #e5e7eb;
    overflow: hidden;
    margin: 10px 0 11px;
    width: 100%;
    align-self: stretch;
}

.stat-mon-progress-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #16a34a, #4ade80);
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Coverage badge */
.stat-mon-badge {
    display: inline-flex;
    align-items: center;
    background: #16a34a;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* Sub text */
.stat-mon-sub {
    font-size: 1.1rem;
    color: #4b5563;
    margin-top: 3px;
    font-weight: 500;
}

.stat-mon-sub strong { color: #16a34a; }

/* Trend badge — card 4 (violet) */
.stat-mon-trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ede9fe;
    color: #5b21b6;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 2px;
}

/* Critical badge — card 5 (red) */
.stat-mon-critical-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-top: 8px;
}

.stat-mon-critical-badge-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dc2626;
    flex-shrink: 0;
}

/* Sparkline charts — full width at bottom */
.stat-mon-chart {
    margin-top: auto;
    width: 100%;
    align-self: stretch;
}

.stat-mon-chart svg {
    width: 100%;
    display: block;
}

/* Updated timestamp */
.stat-mon-updated {
    font-size: 0.76rem;
    color: #9ca3af;
    margin-top: 7px;
    font-weight: 500;
    font-style: italic;
    text-align: center;
}

/* Responsive */
@media (max-width: 1399px) {
    .stat-mon-value { font-size: 2.2rem; }
    .stat-mon-icon  { width: 78px; height: 78px; font-size: 2rem; }
}

@media (max-width: 1199px) {
    .stat-mon-value { font-size: 2.2rem; }
    .stat-mon-icon  { width: 90px; height: 90px; font-size: 2.2rem; }
    .stat-mon-label { font-size: 1.4rem; }
}

@media (max-width: 575px) {
    .stat-mon-card  { padding: 30px 20px 20px; }
    .stat-mon-value { font-size: 2.2rem; }
    .stat-mon-icon  { width: 80px; height: 80px; font-size: 2rem; }
    .stat-mon-chart { padding-left: 12px; }
    .stat-mon-chart { padding-right: 12px; }
    .stat-mon-progress { font-size: 1.2rem; padding-left: 12px; padding-right: 12px; }
}

/* Category Group Headers */
.category-group-header {
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid;
    border-radius: 8px;
    margin: 0;
}

.category-group-header h6 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.category-group-header h6 i {
    font-size: 1rem;
}

.category-group-header .text-primary {
    border-left-color: #0d6efd;
    color: #0d6efd !important;
}

.category-group-header .text-success {
    border-left-color: #198754;
    color: #198754 !important;
}
