﻿
  

.content-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

#dashboard-container {
    color: #1f3569;
}

    #dashboard-container .dashboard-header {
        background: linear-gradient(135deg, #1f3569 0%, #2c4a7c 50%, #1f3569 100%);
        border-bottom: 0px;
        box-shadow: 0 4px 20px rgba(31, 53, 105, 0.15);
        position: relative;
        overflow: hidden;
    }

    #dashboard-container .dashboard-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(255, 206, 0, 0.1) 0%, transparent 50%, rgba(255, 206, 0, 0.1) 100%);
        pointer-events: none;
    }

    #dashboard-container .dashboard-title {
        color: white;
        position: relative;
        z-index: 1;
    }

        #dashboard-container .dashboard-title p {
            background: linear-gradient(135deg, #ffce00 0%, #ffd700 50%, #ffce00 100%);
            color: #1f3569;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(255, 206, 0, 0.3);
            border-radius: 6px;
        }

    #dashboard-container .dt-column-header,
    #dashboard-container .dt-column-title {
        padding-right: 0px;
    }

.dashboard-body {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    position: relative;
}

.dashboard-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(31, 53, 105, 0.02) 0%, transparent 70%);
    pointer-events: none;
}
.program-title {
    text-align: center;
    padding-top: 20px;
    position: relative;
}

    .program-title h1 {
        text-align: center;
        margin: auto;
        background: linear-gradient(135deg, #1f3569 0%, #2c4a7c 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.program-title-icon {
    color: #1f3569;
    filter: drop-shadow(0 4px 8px rgba(31, 53, 105, 0.2));
}

.program-description {
    text-align: center;
}

.table thead th, .table tfoot td {
    text-align: center;
    align-content: center;
    background: linear-gradient(135deg, #d7d0d0 0%, #c5bdbd 100%);
    color: #1f3569;
    font-weight: 700;
    border: none;
    position: relative;
}

.table thead th::before, .table tfoot td::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.table .th-col-3 {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
}

.table .th-col-4 {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.table .th-col-5 {
    background: linear-gradient(135deg, #20c997 0%, #1ea085 100%);
}

.chart-title {
    text-align: center;
    color: #1f3569;
    font-weight: 800;
    background: linear-gradient(135deg, #1f3569 0%, #2c4a7c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
}

.chart-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1f3569 0%, #ffce00 50%, #1f3569 100%);
    border-radius: 2px;
}
.chart-summary-box {
    display: none;
    top: 25%;
    left: 20%;
}
    .chart-summary-box.loaded {
        display: block;
    }
[id*="-radial-"] .apexcharts-datalabel-value {
    text-shadow: 2px 2px 2px rgba(255,255,255,0.5);
}

/* Modern Card Styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(31, 53, 105, 0.08);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1f3569 0%, #ffce00 50%, #1f3569 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(31, 53, 105, 0.15);
}

.card:hover::before {
    opacity: 1;
}

/* Dashboard Navigation */
.dashboard-nav {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #1f3569 0%, #2c4a7c 100%);
    border-radius: 25px;
    padding: 15px 8px;
    box-shadow: 0 8px 30px rgba(31, 53, 105, 0.3);
    backdrop-filter: blur(10px);
}

.dashboard-nav-item {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dashboard-nav-item.active {
    background: linear-gradient(135deg, #ffce00 0%, #ffd700 100%);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 206, 0, 0.5);
}

.dashboard-nav-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.dashboard-nav-item::after {
    content: attr(data-title);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1f3569 0%, #2c4a7c 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(31, 53, 105, 0.3);
    z-index: 1001;
}

.dashboard-nav-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Section spacing */
.dashboard-row {
    margin-bottom: 2rem;
}

/* Chart container improvements */
.apex-charts {
    position: relative;
    z-index: 1;
}

/* Improved table styling */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(31, 53, 105, 0.05);
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(31, 53, 105, 0.02) 0%, rgba(255, 206, 0, 0.02) 100%);
}

/* Badge improvements */
.badge {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Program icon styling */
.program-title img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(31, 53, 105, 0.2));
}

.program-title:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(31, 53, 105, 0.3));
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-nav {
        right: 10px;
        padding: 10px 6px;
    }
    
    .dashboard-nav-item {
        width: 10px;
        height: 10px;
        margin: 6px 0;
    }
    
    .dashboard-nav-item::after {
        right: 20px;
        font-size: 10px;
        max-width: 200px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .chart-title {
        font-size: 1rem;
    }
    
    .program-title h1 {
        font-size: 1.2rem;
    }
    
    .program-description h3 {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .dashboard-nav {
        right: 5px;
        padding: 8px 4px;
    }
    
    .dashboard-nav-item {
        width: 8px;
        height: 8px;
        margin: 4px 0;
    }
    
    .dashboard-nav-item::after {
        right: 15px;
        font-size: 9px;
        max-width: 150px;
    }
    
    .dashboard-header h3 {
        font-size: 1.1rem;
    }
    
    .dashboard-title p {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* Animation for smooth transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-row {
    animation: fadeInUp 0.6s ease-out;
}

/* Improved focus states for accessibility */
.dashboard-nav-item:focus {
    outline: 2px solid #ffce00;
    outline-offset: 2px;
}

.card:focus-within {
    box-shadow: 0 8px 30px rgba(31, 53, 105, 0.2);
}

.apex-charts {
    /*display:none;*/
}
.apex-charts.loaded {
    display: block;
}
.placeholder {
    z-index: 99999;
}
/* Loading state for charts */
    /*.apex-charts::before {*/
        /*content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1f3569;
    font-size: 14px;
    opacity: 0.7;
    z-index: 1;*/

        /*content: '';
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        background-repeat: no-repeat;
        background-image: linear-gradient( 90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100% ), linear-gradient(#aaaaaa 297px, transparent 0), linear-gradient(#ffffff 100%, transparent 0);
        background-size: 100% 100%, 100% 100%, 100% 100%;
        background-position: 0 0, 16px 15px, 0 0;
        animation: skeleton-animation 1000ms infinite;
    }

    .apex-charts.loaded::before {
        display: none;
    }

@keyframes skeleton-animation {
    to {
        background-position: 100% 0, 16px 15px, 0 0;
    }
}*/

/* Popup Modal Styles */
.progress-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.progress-popup-overlay.show {
    display: flex;
}

.progress-popup {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(31, 53, 105, 0.3);
    position: relative;
    border: 2px solid rgba(31, 53, 105, 0.1);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-header {
    background: linear-gradient(135deg, #1f3569 0%, #2c4a7c 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
}

.popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 206, 0, 0.1) 0%, transparent 50%, rgba(255, 206, 0, 0.1) 100%);
    border-radius: 10px;
    pointer-events: none;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.popup-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 5px 0 0 0;
    position: relative;
    z-index: 1;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 2;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.popup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.popup-metric {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(31, 53, 105, 0.1);
    position: relative;
    overflow: hidden;
}

.popup-metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1f3569 0%, #ffce00 50%, #1f3569 100%);
}

.popup-metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f3569;
    margin: 0;
}

.popup-metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 5px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-metric-change {
    font-size: 0.8rem;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.popup-metric-change.positive {
    background: linear-gradient(135deg, #d1edff 0%, #b3d9ff 100%);
    color: #0d6efd;
}

.popup-metric-change.negative {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    color: #dc3545;
}

.popup-metric-change.neutral {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
}

.popup-chart {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(31, 53, 105, 0.1);
    border: 1px solid rgba(31, 53, 105, 0.1);
}

.popup-chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f3569;
    margin: 0 0 15px 0;
    text-align: center;
}

.popup-timeline {
    margin-top: 20px;
}

.popup-timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f3569;
    margin: 0 0 15px 0;
    text-align: center;
}

.popup-timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin: 5px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #1f3569;
}

.popup-timeline-month {
    font-weight: 600;
    color: #1f3569;
}

.popup-timeline-value {
    font-weight: 700;
    color: #28a745;
}

/* Timeline Chart Styling */
.popup-timeline .popup-chart {
    margin-top: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(31, 53, 105, 0.1);
    box-shadow: 0 4px 15px rgba(31, 53, 105, 0.08);
}

.popup-timeline .popup-chart-title {
    color: #1f3569;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(31, 53, 105, 0.1);
}

/* Enhanced popup layout for better chart display */
.popup-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.popup-timeline {
    grid-column: 1 / -1;
    margin-top: 0;
}

/* Timeline chart animation */
.popup-timeline .apexcharts-canvas {
    transition: all 0.3s ease;
}

.popup-timeline .apexcharts-series path {
    transition: all 0.3s ease;
}

.popup-timeline .apexcharts-marker {
    transition: all 0.3s ease;
}

/* Responsive popup */
@media (max-width: 768px) {
    .progress-popup {
        width: 95%;
        padding: 20px;
        margin: 10px;
        max-height: 90vh;
    }
    
    .popup-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .popup-timeline {
        grid-column: 1;
    }
    
    .popup-title {
        font-size: 1.2rem;
    }
    
    .popup-metric-value {
        font-size: 1.5rem;
    }
    
    .popup-timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .popup-timeline .popup-chart {
        padding: 15px;
    }
    
    .popup-timeline .popup-chart div[id^="popup-timeline-chart-"] {
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .progress-popup {
        padding: 15px;
        margin: 5px;
    }
    
    .popup-timeline .popup-chart div[id^="popup-timeline-chart-"] {
        height: 180px !important;
    }
    
    .popup-metric {
        padding: 15px;
    }
    
    .popup-metric-value {
        font-size: 1.3rem;
    }
}