:root {
    --sidebar-width: 250px;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

#wrapper {
    overflow-x: hidden;
    display: flex;
    min-height: 100vh;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: var(--sidebar-width);
    margin-left: 0;
    transition: margin 0.25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
    width: var(--sidebar-width);
}

#page-content-wrapper {
    min-width: 100vw;
    min-height: 100vh;
}

.wrapper.toggled #sidebar-wrapper {
    margin-left: calc(-1 * var(--sidebar-width));
}

.list-group-item-dark {
    background-color: #343a40;
    border-color: #454d55;
}

.list-group-item-dark:hover {
    background-color: #23272b;
}

.list-group-item-secondary {
    background-color: #495057;
    border-color: #6c757d;
}

.list-group-item-secondary:hover {
    background-color: #383d42;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: calc(-1 * var(--sidebar-width));
    }
}

/* Custom styles for tables */
.table-responsive {
    overflow-x: auto;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Chart container */
.chart-container {
    position: relative;
    margin: auto;
    height: 60vh;
    width: 100%;
}

/* Card styles */
.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-header {
    font-weight: 600;
}

/* Form styles */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button styles */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Alert styles */
.alert {
    margin-bottom: 1rem;
}

/* Login form */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
}

.login-form {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dashboard stats */
.stat-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

/* Report filters */
.filter-container {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

/* Pagination */
.pagination {
    margin-top: 1.5rem;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .chart-container {
        height: 50vh;
    }
}

/* HiyerarÅik MenÃ¼ Stilleri */
.hierarchical-menu-container {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.menu-item {
    border-bottom: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

/* Permissions specific styles */
.menu-checkbox {
    display: flex;
    align-items: center;
}

.menu-checkbox .form-check {
    margin-bottom: 0;
}

.menu-checkbox .form-check-input {
    margin-top: 0;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-content {
    background: #fff;
}

.menu-item-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    transition: background-color 0.2s ease;
}

.menu-item-header:hover {
    background-color: #f8f9fa;
}

.menu-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.menu-toggle:hover {
    background-color: #e9ecef;
    border-radius: 50%;
}

.menu-spacer {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

.toggle-icon {
    transition: transform 0.2s ease;
    font-size: 0.875rem;
}

.menu-item.expanded .toggle-icon {
    transform: rotate(90deg);
}

.menu-info {
    min-width: 0;
}

.menu-title {
    font-size: 1rem;
    color: #212529;
    margin-bottom: 0;
}

.menu-details {
    line-height: 1.4;
}

.menu-actions {
    margin-left: auto;
    flex-shrink: 0;
}

.menu-children {
    display: none;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.menu-item.expanded .menu-children {
    display: block;
}

.menu-children .menu-item {
    margin-left: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.menu-children .menu-item:last-child {
    border-bottom: none;
}

.menu-children .menu-children .menu-item {
    margin-left: 4rem;
}

.menu-children .menu-children .menu-children .menu-item {
    margin-left: 6rem;
}

/* Derinlik gÃ¶stergeleri */
.menu-children .menu-item-header {
    padding-left: 0.5rem;
}

.menu-children .menu-children .menu-item-header {
    padding-left: 0.5rem;
}

.menu-children .menu-children .menu-children .menu-item-header {
    padding-left: 0.5rem;
}

/* Responsive tasarÄ±m */
@media (max-width: 768px) {
    .menu-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .menu-actions {
        margin-left: 0;
        align-self: stretch;
    }
    
    .menu-children .menu-item {
        margin-left: 1rem;
    }
    
    .menu-children .menu-children .menu-item {
        margin-left: 2rem;
    }
    
    .menu-children .menu-children .menu-children .menu-item {
        margin-left: 3rem;
    }
}

/* Animasyonlar */
.menu-item {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ä°statistik KartlarÄ± Stilleri */
.stats-card {
    transition: all 0.3s ease;
    transform: translateY(0);
    border-radius: 15px !important;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.stats-card .card-body {
    position: relative;
    z-index: 2;
}

.stats-card .position-absolute {
    z-index: 1;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
}

/* Pulse animation for numbers */
.stats-number {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Glow effect */
.stats-card.glow {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Icon animations */
.stats-icon {
    transition: transform 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Responsive font sizes */
@media (max-width: 768px) {
    .stats-card h2 {
        font-size: 1.2rem !important;
    }
    
    .stats-card .display-4 {
        font-size: 2rem !important;
    }
}