/* Dashboard Overview Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333333;
    margin: 0;
    letter-spacing: -0.025em;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    border-color: #e0e0e0;
    transform: translateY(-4px);
}

.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: #fafafa;
    color: #666666;
}

.metric-card.critical .metric-icon {
    background: #fff5f5;
    color: #e53e3e;
}

.metric-card.high .metric-icon {
    background: #fffaf0;
    color: #dd6b20;
}

.metric-card.open .metric-icon {
    background: #f7fafc;
    color: #4299e1;
}

.metric-card.resolved .metric-icon {
    background: #f0fff4;
    color: #38a169;
}

.metric-info {
    flex: 1;
}

.metric-info h3 {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    line-height: 1;
    color: #333333;
}

.metric-info p {
    font-size: 0.95rem;
    color: #666666;
    margin: 0.75rem 0 0 0;
    font-weight: 400;
}

/* SLA Section */
.sla-section {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 4rem;
    border: 1px solid #f0f0f0;
}

.sla-section h3 {
    font-size: 1.75rem;
    font-weight: 400;
    color: #333333;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
}

.sla-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.sla-card {
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
}

.sla-card h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #333333;
    margin-bottom: 1.5rem;
}

.sla-progress {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #333333;
    border-radius: 4px;
    transition: width 0.8s ease;
    position: relative;
}

.sla-progress span {
    font-weight: 500;
    color: #666666;
    font-size: 0.9rem;
}

/* Recent Activity */
.recent-activity {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid #f0f0f0;
}

.recent-activity h3 {
    font-size: 1.75rem;
    font-weight: 400;
    color: #333333;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    transform: translateX(8px);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    background: #fafafa;
    color: #666666;
}

.activity-icon.created {
    background: #f0f9ff;
    color: #0284c7;
}

.activity-icon.updated {
    background: #fffbeb;
    color: #d97706;
}

.activity-icon.resolved {
    background: #f0fdf4;
    color: #16a34a;
}

.activity-icon.assigned {
    background: #faf5ff;
    color: #9333ea;
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-details .activity-title {
    font-weight: 500;
    color: #333333;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.activity-details .activity-meta {
    font-size: 0.875rem;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #aaaaaa;
    font-weight: 400;
}

/* Quick Stats Row */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    border-color: #e0e0e0;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 300;
    color: #333333;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 400;
}

/* Chart Containers */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid #f0f0f0;
    margin-bottom: 2rem;
}

.chart-container h3 {
    font-size: 1.375rem;
    font-weight: 500;
    color: #333333;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
}

/* SLA Alerts */
.sla-alert {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sla-alert.warning {
    background: #fffaf0;
    border-color: #fbd38d;
}

.sla-alert.success {
    background: #f0fff4;
    border-color: #9ae6b4;
}

.sla-alert-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.sla-alert.danger .sla-alert-icon {
    color: #e53e3e;
}

.sla-alert.warning .sla-alert-icon {
    color: #dd6b20;
}

.sla-alert.success .sla-alert-icon {
    color: #38a169;
}

.sla-alert-text {
    font-size: 0.875rem;
    color: #333333;
    font-weight: 500;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Ticket Summary Widget */
.ticket-summary {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #f0f0f0;
}

.ticket-summary h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #333333;
    margin-bottom: 1.5rem;
}

.ticket-summary-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.ticket-summary-item:last-child {
    border-bottom: none;
}

.ticket-summary-label {
    font-size: 0.9rem;
    color: #666666;
}

.ticket-summary-count {
    font-size: 1rem;
    font-weight: 500;
    color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sla-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .dashboard-header h2 {
        font-size: 2rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .metric-card {
        padding: 2rem;
    }
    
    .metric-info h3 {
        font-size: 2rem;
    }
    
    .sla-section,
    .recent-activity {
        padding: 2rem;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
    }
    
    .activity-details .activity-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 2rem 1rem;
    }
    
    .dashboard-header h2 {
        font-size: 1.75rem;
    }
    
    .metric-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .metric-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .metric-info h3 {
        font-size: 1.75rem;
    }
    
    .sla-section h3,
    .recent-activity h3 {
        font-size: 1.5rem;
    }
    
    .sla-section,
    .recent-activity,
    .chart-container {
        padding: 1.5rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
}