/* Global Dark Mode Styles */

/* Card spesifik renkler */
.stats-users {
    background-color: #6366f1; /* Mor - kullanıcı sayısı */
    color: white;
}

.stats-progress {
    background-color: #0ea5e9; /* Açık Mavi - devam eden görevler */
    color: white;
}

.stats-pending {
    background-color: #f59e0b; /* Turuncu - bekleyen görevler */
    color: white;
}

.stats-completed {
    background-color: #10b981; /* Yeşil - tamamlanan görevler */
    color: white;
}

/* Genel Dashboard Stilleri */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Header Bar */
.header-bar {
    background: linear-gradient(to right, #f8f9fa, #f1f3f5);
    border-radius: 10px;
    padding: 18px 24px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.header-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #343a40;
    transition: color 0.3s ease;
}

.header-subtitle {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* İstatistik Kartları */
.stats-row {
    margin-bottom: 30px;
}

.stats-card {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    border: none;
    position: relative;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: inherit;
    opacity: 0.7;
}

.stats-card-body {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.stats-card-gradient {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 0;
    transition: background 0.3s ease;
}

.stats-icon {
    font-size: 2.5rem;
    opacity: 0.2;
    position: absolute;
    bottom: 10px;
    right: 15px;
    z-index: 0;
}

.stats-content {
    position: relative;
    z-index: 1;
}

.stats-number {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1;
}

.stats-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stats-action {
    margin-top: 15px;
}

.stats-btn {
    border-radius: 30px;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.stats-btn:hover {
    transform: translateY(-2px);
}

/* Görevler Tablosu */
.recent-tasks-card {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: none;
    transition: all 0.3s ease;
    background-color: #fff; /* Açık tema için tablo arka planı */
}

.recent-tasks-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

/* Status Badge Styles (More Specific Selector) */
#tasksTable .status-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

#tasksTable .status-badge.pending {
    background-color: #fff7ed;
    color: #c2410c;
}

#tasksTable .status-badge.in-progress {
    background-color: #eff6ff; /* Mavi */
    color: #1d4ed8;
}

#tasksTable .status-badge.waiting-for-approval {
    background-color: #f5f3ff; /* Mor */
    color: #6d28d9;
}

#tasksTable .status-badge.completed {
    background-color: #dcfce7; /* Yeşil */
    color: #15803d;
}

#tasksTable .status-badge.approved {
    background-color: #ecfdf5;
    color: #047857;
}

#tasksTable .status-badge.cancelled {
    background-color: #fee2e2; /* Kırmızı */
    color: #b91c1c;
}

#tasksTable .status-badge.returned {
    background-color: #fffbeb; /* Light yellow */
    color: #b45309;
}

/* Stats Mini Card Specific Colors */
.stats-mini-card.waiting-for-approval {
    border-top-color: #8b5cf6; /* Mor */
}

.stats-mini-card.completed {
    border-top-color: #10b981; /* Yeşil */
}

.stats-mini-card.pending {
    border-top-color: #f59e0b; /* Turuncu */
}

.stats-mini-card.in-progress {
    border-top-color: #3b82f6; /* Mavi */
}

.stats-mini-card.cancelled {
    border-top-color: #ef4444; /* Kırmızı */
}

/* Klasik Action Buton Stilleri (user/task_details.php) */
.btn-classic-action {
    background-color: #6c757d; /* Bootstrap Gri (Secondary) */
    border-color: #6c757d;
    color: #ffffff;
}

.btn-classic-action.btn-primary:hover {
    background-color: #0d6efd;
    border-color: #0a58ca;
    color: #ffffff;
}

.btn-classic-action.btn-success:hover {
    background-color: #198754;
    border-color: #146c43;
    color: #ffffff;
}

.btn-classic-action.btn-info:hover {
    background-color: #0dcaf0;
    border-color: #0aa3c2;
    color: #000000;
}

.btn-classic-action.btn-danger:hover {
    background-color: #dc3545;
    border-color: #b02a37;
    color: #ffffff;
}

/* Diğer tüm açık tema stilleri burada kalacak */