/* Main Content */
.main-content {
    max-width: 1700px;
    margin: 0 auto;
    padding: 31.989px 90.355px;
    display: flex;
    flex-direction: column;
    gap: 31.989px;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 15.994px;
}

.dashboard-header-top {
    display: flex;
    flex-direction: column;
    gap: 7.997px;
}

.dashboard-title {
    font-size: 24px;
    font-weight: normal;
    line-height: 36px;
    color: #6c4dfd;
}

.dashboard-subtitle {
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #4a5565;
}

.date-buttons {
    display: flex;
    gap: 7.997px;
}

.date-btn {
    padding: 6.82px 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #4a5565;
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-btn:hover {
    background-color: #f3f4f6;
}

.date-btn.active {
    background-color: #6c4dfd;
    color: #ffffff;
    border-color: #6c4dfd;
}

/* KPI Cards */
.kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 23.991px;
    width: 100%;
}

.kpi-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24.901px;
    display: flex;
    flex-direction: column;
    gap: 11.989px;
}

.kpi-card.featured {
    background-color: rgba(108, 77, 253, 0.03);
    border-color: rgba(108, 77, 253, 0.19);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.kpi-emoji {
    font-size: 24px;
}

.kpi-badge {
    background-color: #f0fdf4;
    color: #00a63e;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    text-align: center;
}

.kpi-body {
    display: flex;
    flex-direction: column;
    gap: 3.991px;
}

.kpi-label {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    color: #4a5565;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kpi-info-icon {
    color: #99a1af;
    cursor: help;
    font-size: 14px;
}

.kpi-value {
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #0a0a0a;
}

.kpi-value.featured {
    color: #6c4dfd;
}

/* Revenue Chart Section */
.revenue-chart-section {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24.901px;
    display: flex;
    flex-direction: column;
    gap: 23.991px;
}

.chart-header {
    display: flex;
    flex-direction: column;
    gap: 3.991px;
}

.chart-title {
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #0a0a0a;
}

.chart-subtitle {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    color: #4a5565;
}

.chart-container {
    height: 350px;
    background-color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 20px;
    position: relative;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.chart-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 250px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, #6c4dfd 0%, rgba(108, 77, 253, 0.6) 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.2s ease;
    width: 40px;
}

.chart-bar.secondary {
    background: linear-gradient(180deg, #f59e0b 0%, rgba(245, 158, 11, 0.6) 100%);
}

.chart-bar.tertiary {
    background: linear-gradient(180deg, #10b981 0%, rgba(16, 185, 129, 0.6) 100%);
}

.chart-bar:hover {
    opacity: 0.8;
}

.chart-month {
    font-size: 14px;
    font-weight: normal;
    line-height: 14px;
    color: #9ca3af;
    text-align: center;
    width: 100%;
}

.chart-legend {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid #f3f4f6;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: normal;
    line-height: 21px;
    color: #0a0a0a;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.legend-color.primary {
    background-color: #6c4dfd;
}

.legend-color.secondary {
    background-color: #f59e0b;
}

.legend-color.tertiary {
    background-color: #10b981;
}

/* Quick Actions */
.quick-actions-section {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24.901px;
    display: flex;
    flex-direction: column;
    gap: 15.994px;
}

.quick-actions-title {
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #0a0a0a;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(283px, 1fr));
    gap: 16px;
}

.action-card {
    border: 2px solid rgba(0, 0, 0, 0);
    border-radius: 10px;
    padding: 17.813px;
    display: flex;
    flex-direction: column;
    gap: 11.989px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.action-card:hover {
    background-color: #f9fafb;
    border-color: rgba(108, 77, 253, 0.2);
}

.action-emoji {
    font-size: 30px;
    line-height: 36px;
    height: 36px;
}

.action-title {
    font-size: 16px;
    font-weight: normal;
    line-height: 24px;
    color: #0a0a0a;
}

.action-description {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
    color: #4a5565;
}

/* Responsive */

@media (max-width: 1024px) {

    .main-content {
        padding: 31.989px 20px;
    }

    .kpi-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 300px;
    }

    .chart-bars {
        height: 200px;
    }
}

@media (max-width: 768px) {
    
    .main-content {
        padding: 15px;
        gap: 20px;
    }

    .dashboard-title {
        font-size: 20px;
    }

    .kpi-container {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 250px;
    }

    .chart-bars {
        height: 150px;
    }
}