:root {
    --sidebar-width: 250px;
    --primary-color: #e74c3c;
    --dark-bg: #2c3e50;
    --light-bg: #f4f7f6;
}
/* Sayfa Sıfırlama ve Temel Yapı */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Segoe UI', sans-serif; }
body { background: #f4f7f6; display: flex; min-height: 100vh; color: #2c3e50; }

/* Sabit Yan Menü */
.sidebar {
    width: 250px;
    background: #2c3e50;
    color: #fff;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 25px 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar .logo h2 { color: #e74c3c; font-size: 24px; margin-bottom: 5px; }
.sidebar .logo small { color: #95a5a6; font-size: 12px; }

/* Menü Altındaki Firma Bilgisi */
.firm-info {
    margin: 15px 0 25px 0;
    padding-top: 15px;
    border-top: 1px solid #3e4f5f;
    font-size: 13px;
    color: #ecf0f1;
}

.sidebar nav ul { list-style: none; }
.sidebar nav ul li.menu-label { font-size: 11px; font-weight: bold; color: #7f8c8d; margin: 20px 0 8px 10px; text-transform: uppercase; }
.sidebar nav ul li a { color: #ecf0f1; text-decoration: none; display: flex; align-items: center; padding: 12px 15px; border-radius: 8px; transition: 0.3s; font-size: 14px; }
.sidebar nav ul li a i { width: 25px; font-size: 16px; }
.sidebar nav ul li a:hover, .sidebar nav ul li.active a { background: #e74c3c; color: white; }

/* Ana İçerik Alanı - Sidebar Kadar Boşluk Bırakır */
.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 30px;
    width: calc(100% - 250px);
}

header { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; }
header h1 { font-size: 26px; font-weight: 700; }

/* Modern Dashboard Kartları (Yan Yana Dizilim) */
.dashboard-header-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.main-gradient { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); color: #fff; }
.border-left-red { border-left: 5px solid #e74c3c; }
.border-left-green { border-left: 5px solid #2ecc71; }

.stat-icon-circle { width: 45px; height: 45px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; font-size: 18px; }
.stat-label { display: block; font-size: 13px; opacity: 0.8; margin-bottom: 3px; }
.stat-value { display: block; font-size: 22px; font-weight: 800; }
.stat-sub { font-size: 11px; opacity: 0.7; }

/* Dashboard Izgarası (Tablolar Yan Yana) */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.modern-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
.card-header { padding: 18px 20px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.card-header h3 { font-size: 16px; font-weight: 600; }

.card-body { padding: 0; }

/* Profesyonel Tablo Yapısı */
.modern-table { width: 100%; border-collapse: collapse; }
.modern-table th { text-align: left; color: #95a5a6; font-size: 11px; text-transform: uppercase; padding: 15px 20px; background: #fafafa; border-bottom: 1px solid #eee; }
.modern-table td { padding: 15px 20px; border-bottom: 1px solid #f8f9fa; font-size: 14px; }
.text-right { text-align: right; }

.btn-sm { text-decoration: none; font-size: 11px; background: #f8f9fa; border: 1px solid #ddd; padding: 5px 12px; border-radius: 5px; color: #444; font-weight: 600; }
.btn-sm:hover { background: #eee; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Segoe UI', sans-serif; }

body { background: var(--light-bg); display: flex; min-height: 100vh; }

/* Menü Sabitleme */
.sidebar {
    width: var(--sidebar-width);
    background: var(--dark-bg);
    color: #fff;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
    z-index: 1000;
}

/* İçerik Alanı Kaydırma */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 30px;
    min-width: 0; /* Flex taşmalarını önler */
}

/* Sidebar Tasarımı */
.sidebar .logo h2 { color: var(--primary-color); letter-spacing: 1px; }
.sidebar .logo small { color: #95a5a6; display: block; margin-bottom: 30px; }
.sidebar nav ul { list-style: none; }
.sidebar nav ul li.menu-label { font-size: 11px; font-weight: bold; color: #7f8c8d; margin: 20px 0 10px 5px; text-transform: uppercase; }
.sidebar nav ul li a { color: #ecf0f1; text-decoration: none; display: flex; align-items: center; padding: 12px 15px; border-radius: 8px; transition: 0.3s; }
.sidebar nav ul li a i { width: 25px; }
.sidebar nav ul li a:hover, .sidebar nav ul li.active a { background: var(--primary-color); color: white; }

/* Kart ve Tablo Düzenleri */
.card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 25px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 25px; }

/* Form Tasarımı */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 14px; color: #34495e; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
input:focus { border-color: var(--primary-color); outline: none; }

/* Modern Tablo */
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th { text-align: left; background: #fafafa; padding: 12px; color: #95a5a6; font-size: 12px; text-transform: uppercase; border-bottom: 2px solid #eee; }
td { padding: 15px 12px; border-bottom: 1px solid #f1f1f1; font-size: 14px; }

.btn-green { background: #27ae60; color: white; border: none; padding: 12px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; width: 100%; transition: 0.3s; }
.btn-green:hover { background: #219150; }