/* Genel Stil */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

.navbar-brand {
    font-weight: bold;
}

/* Kartlar */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

/* İstatistik Kartları */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.stat-card.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* QR Kamera */
#qr-video {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
}

.qr-scanner-container {
    text-align: center;
    padding: 20px;
}

/* Formlar */
.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

.btn {
    border-radius: 5px;
    padding: 8px 20px;
}

/* Tablolar */
.table {
    background: white;
    border-radius: 5px;
    overflow: hidden;
}

.table thead {
    background-color: #f8f9fa;
}

/* Grafikler */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card .stat-value {
        font-size: 2rem;
    }
}

/* Yükleme animasyonu */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Başarı mesajı */
.success-badge {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 10px 0;
    display: inline-block;
}

/* --- YENİ SIDEBAR (SOL MENÜ) STİLLERİ --- */
#wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

#sidebar {
    width: 250px;
    background: #343a40;
    color: #fff;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

#sidebar.collapsed {
    width: 80px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #212529;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#sidebar.collapsed .sidebar-header .text {
    display: none;
}

#sidebar .nav-item {
    width: 100%;
}

#sidebar .nav-link {
    color: #c2c7d0;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.2s;
}

#sidebar .nav-link:hover, #sidebar .nav-link.active {
    color: #fff;
    background: #495057;
    text-decoration: none;
}

#sidebar .nav-link i {
    font-size: 1.2rem;
    margin-right: 15px;
    min-width: 20px;
    text-align: center;
}

#sidebar.collapsed .nav-link .text {
    display: none;
}

#sidebar.collapsed .nav-link i {
    margin-right: 0;
}

#page-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: all 0.3s;
    background-color: #f8f9fa;
}

.top-header {
    background: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-sidebar-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #495057;
}

.toggle-sidebar-btn:focus {
    outline: none;
}

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #sidebar.collapsed {
        width: 250px;
    }
    #sidebar.collapsed .nav-link .text, #sidebar.collapsed .sidebar-header .text {
        display: inline-block;
    }
}

