body {
    margin: 0;
    padding: 0;
    padding-top: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

.dashboard-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 20px;
    animation: fadeInUp 0.6s ease;
}

.header-section {
    margin-bottom: 30px;
}

.header-section .card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.complex-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0;
}

.stats-section {
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 0;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e8ecf1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.stat-card-body {
    padding: 20px;
    display: flex;
    align-items: center;
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.stat-icon-wrapper i {
    font-size: 28px;
    color: white;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-success-gradient {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-warning-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-danger-gradient {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-content {
    flex: 1;
}

.stat-title {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.stat-value-small {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.stat-detail {
    margin-top: 10px;
}

.stat-detail .badge {
    padding: 5px 10px;
    font-weight: 500;
}

.bg-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.charts-section {
    margin-bottom: 30px;
}

.chart-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e8ecf1;
}

.chart-card:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.chart-header {
    padding: 20px;
    border-bottom: 1px solid #e8ecf1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.period-filter {
    max-width: 180px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.period-filter:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    border-color: #667eea;
    background: linear-gradient(135deg, #5a67d8 0%, #6b4199 100%);
}

.period-filter:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b4199 100%);
    transform: translateY(-1px);
}

.period-filter option {
    background: #ffffff;
    color: #1e293b;
    font-weight: 500;
}

.chart-title {
    margin: 0;
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.chart-title i {
    color: #667eea;
}

.chart-body {
    padding: 20px;
    background: #ffffff;
}

.chart-container {
    position: relative;
    height: 350px;
}

.chart-container-pie {
    position: relative;
    height: 300px;
}

.no-data-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10;
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

.no-data-overlay p {
    margin: 10px 0 0 0;
    color: #64748b;
}

.no-data-overlay i {
    color: #64748b;
}

.chart-container canvas,
.chart-container-pie canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-container canvas,
.chart-container-pie canvas {
    color: #1e293b !important;
}

.chart-container * {
    color: #1e293b !important;
}

.chart-container-pie * {
    color: #1e293b !important;
}

.skeleton-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 20px;
}

.skeleton-block {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 15px;
}

.skeleton-header {
    height: 120px;
}

.stat-card-skeleton {
    height: 140px;
}

.chart-skeleton {
    height: 400px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

@media (max-width: 1200px) {
    .dashboard-container {
        max-width: 96%;
        padding: 15px;
    }

    .complex-name {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        max-width: 98%;
        padding: 10px;
    }

    .header-section .d-flex {
        flex-direction: column;
    }

    .logo-img {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .complex-name {
        font-size: 1.5rem;
    }

    .stat-card-body {
        padding: 15px;
    }

    .stat-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }

    .stat-icon-wrapper i {
        font-size: 24px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-value-small {
        font-size: 1rem;
    }

    .chart-container {
        height: 250px;
    }

    .chart-container-pie {
        height: 250px;
    }

    .chart-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .chart-header .badge {
        margin-top: 10px;
    }

    .period-filter {
        max-width: 100%;
        width: 100%;
        margin-top: 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 50px;
    }

    .dashboard-container {
        max-width: 100%;
        padding: 8px;
    }

    .skeleton-container {
        max-width: 100%;
        padding: 8px;
    }

    .stat-card {
        margin-bottom: 15px;
    }

    .stat-detail .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .chart-title {
        font-size: 1rem;
    }

    .chart-body {
        padding: 15px;
    }
}

.text-primary {
    color: #667eea !important;
}

.text-success {
    color: #38ef7d !important;
}

.text-warning {
    color: #f5576c !important;
}

.text-danger {
    color: #fa709a !important;
}

.text-muted {
    color: #6c757d !important;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.border-0 {
    border: none !important;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b4199 100%);
}

.stat-card .stat-title {
    color: #64748b !important;
}

.stat-card .stat-value,
.stat-card .stat-value-small {
    color: #1e293b !important;
}

.header-section .card,
.header-section .card * {
    color: #ffffff !important;
}

.header-section .card .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.stat-icon-wrapper i {
    color: white !important;
}

.chart-title {
    color: #1e293b !important;
}

.chart-title i {
    color: #667eea !important;
}

.badge {
    color: #ffffff !important;
}

.stat-detail .badge {
    color: #ffffff !important;
}

.stat-detail .small {
    color: #64748b !important;
}

.text-success.small {
    color: #10b981 !important;
}

.text-warning.small {
    color: #f59e0b !important;
}

.text-danger.small {
    color: #ef4444 !important;
}

.chart-text-white {
    color: #1e293b !important;
    fill: #1e293b !important;
}

.chartjs-render-monitor {
    color: #1e293b !important;
}

@media print {
    body {
        background: white;
        padding-top: 0;
    }

    nav,
    .notification,
    .notifi-box,
    .dropdown {
        display: none !important;
    }

    .dashboard-container {
        max-width: 100%;
        padding: 0;
    }

    .skeleton-container {
        max-width: 100%;
        padding: 0;
    }

    .stat-card,
    .chart-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6;
        page-break-inside: avoid;
    }

    .chart-container,
    .chart-container-pie {
        height: 300px !important;
    }
}