/* Main Layout Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Right Sidebar Navigation */
.sidebar-right {
    width: 280px;
    background-color: #1e2d5f;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Top Header */
.top-header {
    background-color: #1e2d5f;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-icons {
    display: flex;
    gap: 1rem;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    padding: 2rem;
    gap: 2rem;
}

/* Left Sidebar (Calendar) */
.sidebar-left {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Calendar Card */
.calendar-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Main Chart Area */
.chart-area {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Base Skeleton Styles */
.skeleton {
    background-color: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Skeleton Variants */
.skeleton-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.skeleton-logo {
    width: 120px;
    height: 32px;
}

.skeleton-menu-item {
    height: 48px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-subtitle {
    height: 18px;
    width: 40%;
    margin-bottom: 1.5rem;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 0.75rem;
}

.skeleton-text-short {
    height: 14px;
    width: 70%;
    margin-bottom: 0.75rem;
}

/* Calendar Image */
.calendar-image {
    width: 100%;
    height: 180px;
    margin-bottom: 1rem;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.calendar-day {
    height: 40px;
    width: 100%;
}

.calendar-header {
    height: 28px;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Chart Skeleton */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 400px;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 2px solid #e0e0e0;
}

.chart-bar {
    flex: 1;
    background-color: #e0e0e0;
    position: relative;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

/* Varying heights for chart bars */
.chart-bar:nth-child(1) { height: 85%; }
.chart-bar:nth-child(2) { height: 75%; }
.chart-bar:nth-child(3) { height: 70%; }
.chart-bar:nth-child(4) { height: 40%; }
.chart-bar:nth-child(5) { height: 60%; }
.chart-bar:nth-child(6) { height: 25%; }
.chart-bar:nth-child(7) { height: 20%; }
.chart-bar:nth-child(8) { height: 30%; }
.chart-bar:nth-child(9) { height: 15%; }
.chart-bar:nth-child(10) { height: 12%; }
.chart-bar:nth-child(11) { height: 8%; }
.chart-bar:nth-child(12) { height: 18%; }
.chart-bar:nth-child(13) { height: 10%; }
.chart-bar:nth-child(14) { height: 15%; }
.chart-bar:nth-child(15) { height: 8%; }
.chart-bar:nth-child(16) { height: 5%; }
.chart-bar:nth-child(17) { height: 7%; }
.chart-bar:nth-child(18) { height: 12%; }

.chart-labels {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chart-label {
    flex: 1;
    height: 40px;
    border-radius: 4px;
}

/* Legend */
.chart-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.legend-box {
    width: 40px;
    height: 14px;
    border-radius: 2px;
}

.legend-text {
    width: 80px;
    height: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sidebar-left {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar-left {
        width: 100%;
    }

    .sidebar-right {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar-right {
        width: 100%;
        padding: 1rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .chart-bars {
        height: 300px;
    }
}
