/* BYF Mühendislik - Dashboard Özel Stilleri */
/* Mobile-First Responsive Design */

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: var(--spacing-3) 0;
    margin-bottom: var(--spacing-3);
    position: relative;
    overflow: hidden;
}

.dashboard-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.dashboard-header h1 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-2);
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .dashboard-header {
        padding: var(--spacing-4) 0;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .dashboard-header p {
        font-size: 1.1rem;
    }
}

/* Stats Grid - Mobile First */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-3);
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3-4 columns */
@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1440px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Stat Cards */
.stat-card {
    background: var(--white);
    padding: var(--spacing-3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--info-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stat-card.success { border-left-color: var(--success-color); }
.stat-card.warning { border-left-color: var(--warning-color); }
.stat-card.danger { border-left-color: var(--danger-color); }
.stat-card.info { border-left-color: var(--info-color); }

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: var(--spacing-1);
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 2.25rem;
    }
}

.stat-label {
    color: var(--gray-text);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Dashboard Content Grid - Mobile First */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-3);
}

@media (min-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 2fr 1fr;
        gap: var(--spacing-4);
    }
}

/* Section Cards */
.section-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-3);
    overflow: hidden;
}

.section-header {
    padding: var(--spacing-3);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    align-items: flex-start;
    background: var(--light-bg);
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.section-header h3 {
    color: var(--dark-text);
    margin: 0;
    font-size: 1.125rem;
}

@media (min-width: 768px) {
    .section-header h3 {
        font-size: 1.25rem;
    }
}

.section-body {
    padding: var(--spacing-3);
}

/* List Items - Mobile First */
.service-item, .firm-item, .document-item, .request-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    align-items: flex-start;
    padding: var(--spacing-3) 0;
    border-bottom: 1px solid var(--light-bg);
}

@media (min-width: 768px) {
    .service-item, .firm-item, .document-item, .request-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.service-item:last-child, .firm-item:last-child, 
.document-item:last-child, .request-item:last-child {
    border-bottom: none;
}

.item-info h4 {
    margin-bottom: var(--spacing-1);
    color: var(--dark-text);
    font-size: 1rem;
}

.item-meta {
    color: var(--gray-text);
    font-size: 0.875rem;
}

/* Quick Actions Grid - Mobile First */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-3);
    margin-top: var(--spacing-3);
}

@media (min-width: 480px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-5) var(--spacing-4);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.action-btn:hover {
    background: var(--gradient-secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.action-btn i {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-2);
    transition: transform 0.3s ease;
    color: white;
}

.action-btn:hover i {
    transform: scale(1.15) rotate(5deg);
}

.action-btn span {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.action-card {
    background: var(--white);
    padding: var(--spacing-4) var(--spacing-3);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: #3498db;
    color: inherit;
}

.action-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.action-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.action-card p {
    color: #7f8c8d;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

/* System Status */
.system-status .status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

/* Activity List */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content p {
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.activity-content small {
    color: #7f8c8d;
}

/* Firm Info */
.firm-info .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.firm-info .info-item strong {
    color: #2c3e50;
}

.firm-info .info-item span {
    color: #7f8c8d;
}

/* Welcome Card */
.welcome-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Stat Card with Icon */
.stat-card-with-icon {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: center;
    border-top: 4px solid #3498db;
}

.stat-card-with-icon.success { border-top-color: #27ae60; }
.stat-card-with-icon.warning { border-top-color: #f39c12; }

.stat-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.stat-info h3 {
    margin: 0;
    font-size: 2rem;
    color: #2c3e50;
}

.stat-info p {
    margin: 0;
    color: #7f8c8d;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Responsive Dashboard */
@media (max-width: 968px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 1.5rem 0;
    }
    
    .stat-card-with-icon {
        flex-direction: column;
        text-align: center;
    }
    
    .action-card {
        padding: 1.5rem 1rem;
    }
}

/* ===================================
   DARK MODE - Dashboard Enhancements
   =================================== */

/* Dashboard Header - Always visible */
[data-theme="dark"] .dashboard-header h1,
[data-theme="dark"] .dashboard-header p {
    color: white !important;
}

/* Stat Cards - Dark Mode */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .stat-card-with-icon,
[data-theme="dark"] .welcome-card {
    background: var(--white);
    border-color: var(--border-color);
}

[data-theme="dark"] .stat-number,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .stat-info h3,
[data-theme="dark"] .stat-info p {
    color: var(--dark-text);
}

/* Action Cards - Dark Mode */
[data-theme="dark"] .action-card {
    background: var(--white);
    border-color: var(--border-color);
}

[data-theme="dark"] .action-card h3 {
    color: var(--dark-text);
}

[data-theme="dark"] .action-card p {
    color: var(--gray-text);
}

/* Quick Actions - Dark Mode */
[data-theme="dark"] .quick-actions .action-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .quick-actions .action-btn:hover {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .quick-actions .action-btn i,
[data-theme="dark"] .quick-actions .action-btn span {
    color: white;
}

/* Service/Request Cards - Dark Mode */
[data-theme="dark"] .service-item,
[data-theme="dark"] .request-item {
    background: var(--white);
    border-color: var(--border-color);
}

[data-theme="dark"] .service-item h3,
[data-theme="dark"] .request-item h3 {
    color: var(--dark-text);
}

[data-theme="dark"] .service-item p,
[data-theme="dark"] .request-item p {
    color: var(--gray-text);
}

/* Status Badge - Enhanced */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    gap: 0.375rem;
}

.status-badge i {
    font-size: 0.75rem;
}

.status-badge.pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

.status-badge.approved,
.status-badge.completed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #10b981;
}

.status-badge.rejected {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #ef4444;
}

.status-badge.in-progress,
.status-badge.in_progress {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e3a8a;
    border: 1px solid #3b82f6;
}

/* Dark Mode Status Badges */
[data-theme="dark"] .status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fcd34d;
}

[data-theme="dark"] .status-badge.approved,
[data-theme="dark"] .status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

[data-theme="dark"] .status-badge.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

[data-theme="dark"] .status-badge.in-progress,
[data-theme="dark"] .status-badge.in_progress {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

/* Firm Info - Dark Mode */
[data-theme="dark"] .firm-info {
    background: var(--white);
}

[data-theme="dark"] .firm-info .info-item {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .firm-info .info-item strong {
    color: var(--dark-text);
}

[data-theme="dark"] .firm-info .info-item span {
    color: var(--gray-text);
}

/* ===================================
   EMPTY STATE - Modern
   =================================== */

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

.empty-state-inline {
    text-align: center;
    padding: 2rem;
    background: rgba(59, 130, 246, 0.05);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.empty-state i,
.empty-state-inline i {
    font-size: 3rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3,
.empty-state-inline h3 {
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.empty-state p,
.empty-state-inline p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .empty-state,
[data-theme="dark"] .empty-state-inline {
    background: var(--white);
    border-color: var(--border-color);
}

[data-theme="dark"] .empty-state h3,
[data-theme="dark"] .empty-state-inline h3 {
    color: var(--dark-text);
}

[data-theme="dark"] .empty-state p,
[data-theme="dark"] .empty-state-inline p {
    color: var(--gray-text);
}