/* UserAdmin - Bootstrap Light Theme */

:root {
    --bs-dark: #212529;
    --bs-dark-rgb: 33, 37, 41;
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
    --bs-secondary: #6c757d;
    --bs-secondary-rgb: 108, 117, 125;
    --bs-success: #198754;
    --bs-success-rgb: 25, 135, 84;
    --bs-danger: #dc3545;
    --bs-danger-rgb: 220, 53, 69;
    --bs-warning: #ffc107;
    --bs-warning-rgb: 255, 193, 7;
    --bs-info: #0dcaf0;
    --bs-info-rgb: 13, 202, 240;
    --bs-light: #f8f9fa;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark: #212529;
    --bs-dark-rgb: 33, 37, 41;
}

body {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #212529;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid #dee2e6;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-header h4 {
    display: none;
}

.sidebar.collapsed .sidebar-menu a {
    padding: 1rem 0.5rem;
    text-align: center;
}

.sidebar.collapsed .sidebar-menu a i {
    margin-right: 0;
    font-size: 1.2rem;
}

.sidebar.collapsed .sidebar-menu a span {
    display: none;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-header .logo {
    max-height: 60px;
    max-width: 180px;
    width: auto;
    height: auto;
}

.sidebar-header h4 {
    display: none; /* Logo kullanıldığı için yazıyı gizle */
    margin: 0;
    color: #212529;
    font-weight: 600;
}

.sidebar.collapsed .sidebar-header .logo {
    max-height: 40px;
    max-width: 40px;
}

.sidebar-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
    border-left-color: var(--bs-primary);
}

.sidebar-menu a.active {
    background-color: #e7f1ff;
    color: #0d6efd;
    border-left-color: var(--bs-primary);
    font-weight: 600;
}

.sidebar-menu i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Menu Categories */
.menu-category {
    position: relative;
}

.menu-category-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.menu-category-toggle .menu-arrow {
    margin-left: auto;
    margin-right: 0;
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.menu-category.active .menu-category-toggle .menu-arrow {
    transform: rotate(180deg);
}

.menu-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
}

.menu-category.active .menu-submenu {
    max-height: 500px;
}

.menu-submenu li {
    border-bottom: 1px solid #e9ecef;
}

.menu-submenu a {
    padding-left: 3rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.9rem;
}

.menu-submenu a i {
    font-size: 0.85rem;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    min-height: 100vh;
    background: transparent;
    transition: margin-left 0.3s ease;
}

body.sidebar-collapsed .main-content {
    margin-left: 70px;
}

/* Top Bar */
.topbar {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.topbar-left h5 {
    margin: 0;
    color: #212529;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* DataTables Custom Styles */
.dataTables_wrapper {
    margin-top: 1rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.dataTables_wrapper .dataTables_length select {
    width: auto;
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 0.75rem;
    color: #6c757d;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.25rem 0.5rem;
    margin: 0 0.125rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #0d6efd;
    color: white !important;
    border-color: #0d6efd;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Content Area */
.content {
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 1.5rem;
}

/* Cards */
.card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.card-header h6 {
    margin: 0;
    color: #212529;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
.table {
    color: #212529;
    background-color: transparent;
}

.table th {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
    font-weight: 600;
}

.table td {
    border-color: #dee2e6;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Forms */
.form-control {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    color: #212529;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: var(--bs-primary);
    color: #212529;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder {
    color: #6c757d;
}

.form-label {
    color: #495057;
    font-weight: 500;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-danger {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.btn-success {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid var(--bs-success);
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border-left: 4px solid var(--bs-danger);
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
    border-left: 4px solid var(--bs-warning);
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
    border-left: 4px solid var(--bs-info);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h3 {
    color: #212529;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #6c757d;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1050;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: 280px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content {
        padding: 1rem;
    }
    
    /* Sidebar açıkken overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

/* Utilities */
.text-muted {
    color: #6c757d !important;
}

.bg-dark {
    background-color: var(--bs-dark) !important;
}

.border-dark {
    border-color: #dee2e6 !important;
}

.shadow {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}
