/* Koyu tema ortak stiller */
body {
    background: linear-gradient(135deg, #232526, #414345);
    min-height: 100vh;
    color: #f1f1f1;
}
.bg-dark-card, .login-card, .logout-card, .panel-card {
    background: #232526 !important;
    color: #f1f1f1 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.sidebar {
    min-height: 100vh;
    background: #181818 !important;
    box-shadow: 2px 0 8px rgba(0,0,0,0.18);
    padding-top: 32px;
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    z-index: 100;
    transition: width 0.3s;
}
.sidebar .panel-logo, .login-logo {
    filter: brightness(0.8);
    max-width: 100%;
    height: auto;
}
.sidebar h5 {
    color: #f1f1f1;
}
.sidebar .nav-link {
    color: #b0c4de !important;
    font-weight: 500;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background: #232526 !important;
    color: #fff !important;
}
.sidebar .nav-link.text-danger {
    color: #ff6b6b !important;
}
.main-content {
    margin-left: 220px;
    padding: 40px 24px;
    transition: margin-left 0.3s;
}
.form-control, .form-label {
    background: #232526 !important;
    color: #f1f1f1 !important;
    border-color: #444 !important;
}
.form-control:focus {
    background: #232526 !important;
    color: #fff !important;
    border-color: #2193b0 !important;
}
.btn-primary, .btn-success, .btn-warning, .btn-danger, .btn-secondary {
    border: none !important;
}
.alert-danger {
    background: #3a3a3a !important;
    color: #ff6b6b !important;
    border: none !important;
}
hr {
    border-color: #444 !important;
}

/* Responsive düzenlemeler */
@media (max-width: 991.98px) {
    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
        box-shadow: none;
        padding-top: 16px;
        margin-bottom: 24px;
    }
    .main-content {
        margin-left: 0;
        padding: 16px 8px;
    }
    .bg-dark-card, .login-card, .logout-card, .panel-card {
        padding: 16px !important;
    }
    .header-flex {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .table {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .sidebar h5 {
        font-size: 1rem;
    }
    .panel-logo, .login-logo {
        width: 48px !important;
    }
    .table {
        font-size: 0.85rem;
    }
    .main-content {
        padding: 8px 2px;
    }
}