:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --sidebar-bg: #111827;
    /* Koyu Sidebar */
    --sidebar-text: #9ca3af;
    --sidebar-active-bg: #1f2937;
    --sidebar-active-text: #ffffff;
    --background-color: #f3f4f6;
    --text-color: #1f2937;
    --card-bg: #ffffff;
    --error-color: #ef4444;
    --success-color: #10b981;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Genel Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    border-bottom: 1px solid #1f2937;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background-color: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    border-right: 3px solid var(--primary-color);
}

.nav-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    display: inline-block;
}

/* Ana İçerik Alanı */
.main-content {
    flex: 1;
    margin-left: 260px;
    /* Sidebar Genişliği */
    padding: 2rem;
    width: calc(100% - 260px);
}

/* Kart ve Tablolar */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.page-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h2 {
    margin: 0;
    color: #111827;
}

/* Form Elemanları */
button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    background-color: var(--primary-dark);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}

/* Tablolar */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #4b5563;
}

.status-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-online {
    background-color: #10b981;
}

.status-offline {
    background-color: #9ca3af;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #047857;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Accordion */
.accordion {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.accordion-header {
    padding: 1rem;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.accordion-content {
    display: none;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.accordion-content.active {
    display: block;
}

/* --- YENİ DASHBOARD STİLLERİ --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-header-card {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.dashboard-header-card h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.dashboard-header-card p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.dashboard-header-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.stat-label {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* Renk Temaları */
.theme-blue .stat-icon-wrapper {
    background: #dbeafe;
    color: #1e40af;
}

.theme-green .stat-icon-wrapper {
    background: #dcfce7;
    color: #166534;
}

.theme-orange .stat-icon-wrapper {
    background: #ffedd5;
    color: #c2410c;
}

.theme-purple .stat-icon-wrapper {
    background: #f3e8ff;
    color: #7e22ce;
}

/* Todo Listesi İyileştirmesi */
.todo-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.todo-item {
    background: white;
    border: 1px solid #f3f4f6;
    border-left: 4px solid #3b82f6;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.todo-item:hover {
    transform: translateX(5px);
    border-color: #bfdbfe;
}

.todo-time {
    font-weight: 700;
    color: #1e40af;
    font-size: 0.9rem;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Hızlı İşlem Butonları */
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.quick-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.quick-btn span {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
/* === CSS GÜNCELLEMESİ: Responsive & Layout İyileştirmeleri === */

/* Container İyileştirme (Adaylar İçin) */
.container {
    max-width: 600px;
    margin: 40px auto;
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Form Elemanları Güzelleştirme */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}
.form-group input:disabled {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

/* Secondary Link */
.secondary-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}
.secondary-link:hover {
    background: #eff6ff;
}
.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}
.btn-secondary:hover {
    background: #e5e7eb;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    /* Tablet */
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobil Görünüm */
    .admin-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        overflow-y: visible;
    }
    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 1rem;
    }
    
    .dashboard-header-card {
        padding: 1.5rem;
        text-align: center;
    }
    .dashboard-header-card::after {
        display: none; /* Mobilde karmaşıklığı azalt */
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .quick-action-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        margin: 20px auto;
        padding: 1.5rem;
        width: 90%;
    }
    
    /* İstatistik kartları mobilde daha kompakt olsun */
    .stat-card {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }
    .stat-icon-wrapper {
        margin-bottom: 0;
        width: 40px; height: 40px; font-size: 1.2rem;
    }
    .stat-value { font-size: 1.5rem; }
    
    /* Tablo taşmalarını yönet */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Sidebar Navigation mobilde yatay scroll olabilir veya dikey accordion gibi */
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    .nav-item {
        padding: 10px;
        white-space: nowrap;
        border-right: none;
        border-bottom: 3px solid transparent;
    }
    .nav-item.active {
        background: transparent;
        border-right: none;
        border-bottom-color: var(--primary-color);
        color: var(--primary-color);
    }
}
/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}
