/* Project Dashboard Styles */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Top Button Row */
.dashboard-button-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
    padding: 0;
}

.button-group {
    display: flex;
    gap: 15px;
}

.dashboard-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 2px solid #3d85c6;
    background-color: transparent;
    color: #3d85c6;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

/* .dashboard-btn:hover {
    background-color: #3d85c6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(61, 133, 198, 0.3);
}

.dashboard-btn.active {
    background-color: #3d85c6;
    color: white;
    box-shadow: 0 4px 8px rgba(61, 133, 198, 0.3);
} */

.dashboard-btn i {
    font-size: 18px;
}

/* Charts Section */
.charts-section {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    justify-content: space-between;
}

.chart-container {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 350px;
}

.chart-header {
    text-align:center;
    margin-bottom: 20px;
}

.chart-header h4 {
    color: #333;
    font-weight: 600;
    margin: 0;
}

.chart-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

/* Additional Charts Section */
.additional-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.additional-charts .chart-container {
    min-height: 280px;
}

/* Placeholder Content for New Charts */
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    text-align: center;
}

.placeholder-content i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #3d85c6;
    opacity: 0.6;
}

.placeholder-content p {
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}


/* Summary Section */
.summary-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.summary-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
    min-width: 200px;
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.summary-icon {
    background: #3d85c6;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 24px;
}

.summary-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.summary-content p {
    color: #666;
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Sections */
.dashboard-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.section-header h4 {
    margin: 0;
    color: #495057;
    font-weight: 600;
    font-size: 18px;
}

.section-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #3d85c6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-action-btn:hover {
    background-color: #2c6aa0;
    transform: translateY(-1px);
}

.section-content {
    padding: 0;
}

/* Dashboard Table */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.dashboard-table thead {
    background-color: #f8f9fa;
}

.dashboard-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
}

.dashboard-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.dashboard-row {
    transition: background-color 0.2s ease;
}

.dashboard-row:hover {
    background-color: #f8f9fa;
}

/* Progress Bar */
.progress-bar {
    position: relative;
    background-color: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    min-width: 100px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3d85c6 0%, #5a9fd4 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: #495057;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-draft {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 5px;
}

.view-btn {
    background-color: #3d85c6;
    color: white;
}

.view-btn:hover {
    background-color: #2c6aa0;
    transform: scale(1.1);
}

.edit-btn {
    background-color: #ffc107;
    color: #212529;
}

.edit-btn:hover {
    background-color: #e0a800;
    transform: scale(1.1);
}

.approve-btn {
    background-color: #28a745;
    color: white;
}

.approve-btn:hover {
    background-color: #218838;
    transform: scale(1.1);
}

/* Stats Section */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #3d85c6, #5a9fd4);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #28a745, #34ce57);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #ffc107, #ffd43b);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #6c757d, #868e96);
}

.stat-content h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #495057;
}

.stat-content p {
    margin: 5px 0 0 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Custom Alert */
.custom-alert {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 20px;
    border-radius: 10px;
    background-color: #fff;
    color: #e69138;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #e69138;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.close-alert {
    margin-left: 15px;
    font-size: 18px;
    cursor: pointer;
    color: #e69138;
}

.custom-alert.success {
    color: #3d85c6;
    border-color: #3d85c6;
}

.custom-alert.error {
    color: #f44336;
    border-color: #f44336;
}

.custom-alert.warning {
    color: #ff9800;
    border-color: #ff9800;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        
    }
    
    .dashboard-button-row {
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .additional-charts {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-table {
        font-size: 14px;
    }
    
    .dashboard-table th,
    .dashboard-table td {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .dashboard-table {
        font-size: 12px;
    }
    
    .dashboard-table th,
    .dashboard-table td {
        padding: 8px 10px;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
    
    .additional-charts .chart-container {
        min-height: 250px;
        padding: 15px;
    }
    
    .placeholder-content i {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .placeholder-content p {
        font-size: 12px;
    }
}
