/* Sidebar Stilleri */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    padding: 25px;
    border-bottom: 1px solid #334155;
    margin-bottom: 20px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
}

.nav-item:hover {
    background: #334155;
    color: white;
}

.nav-item.aktif {
    background: #1a73e8;
    color: white;
}

.nav-item .icon {
    font-size: 20px;
}

.badge-yeni {
    background: #22c55e;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
}

/* Ana içerik */
.main-content {
    flex: 1;
    margin-left: 280px;
    background: #f1f5f9;
    min-height: 100vh;
}

.top-header {
    background: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.btn-yenile {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

/* İstatistik Kartları */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 40px;
    background: #eef2ff;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.stat-info h3 {
    font-size: 28px;
    margin: 0;
    color: #0f172a;
}

.stat-info p {
    color: #64748b;
    margin: 5px 0 0;
}

.stat-trend {
    margin-left: auto;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
    background: #f1f5f9;
}

.stat-trend.up {
    color: #22c55e;
}

.stat-trend.down {
    color: #ef4444;
}

/* Grafik alanları */
.charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 30px 30px;
}

.chart-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chart-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

/* Dashboard grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 30px 30px;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dashboard-card.full-width {
    grid-column: span 2;
}

.card-header {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
}

.btn-link {
    color: #1a73e8;
    text-decoration: none;
    font-size: 13px;
}

.card-body {
    padding: 20px;
}

/* Son projeler listesi */
.son-projeler {
    list-style: none;
    padding: 0;
    margin: 0;
}

.son-projeler li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.proje-bilgi strong {
    display: block;
}

.proje-bilgi .tarih {
    font-size: 12px;
    color: #64748b;
}

.durum-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Kritik stok listesi */
.kritik-stok-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kritik-stok-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.malzeme-bilgi {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-bar {
    background: #e2e8f0;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

.btn-ekle-stok {
    display: inline-block;
    font-size: 12px;
    color: #1a73e8;
    text-decoration: none;
    margin-top: 8px;
}

.basari-mesaji {
    color: #22c55e;
    text-align: center;
    padding: 20px;
}

/* Mini tablo */
.mini-tablo {
    width: 100%;
    border-collapse: collapse;
}

.mini-tablo th {
    text-align: left;
    padding: 10px;
    background: #f8fafc;
    font-size: 13px;
}

.mini-tablo td {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.hareket-giris {
    color: #22c55e;
}

.hareket-cikis {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    .sidebar .logo h2,
    .nav-item span:not(.icon) {
        display: none;
    }
    .main-content {
        margin-left: 70px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-card.full-width {
        grid-column: span 1;
    }
}