:root {
    /* Renk Değişkenleri */
    --primary-color: #1d274c;
    --primary-dark: #2980b9;
    --secondary-color: #34495e;
    --secondary-dark: #2c3e50;
    --sidebar-bg: #111c43;


    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --text-muted: #95a5a6;
    --text-dark: #2c3e50;

    --bg-body: #f5f5f5;
    --bg-white: #fff;
    --bg-light: #f8f9fa;
    --bg-unread: #ebf5fb;

    --hover-bg: #1d274c;
    --active-bg: #1d274c;
    --active-dark: #1d274c;

    --notification-badge: #e74c3c;
    --border-color: #ecf0f1;

    /* Diğer Değişkenler */
    --sidebar-width: 200px;
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-body);
    overflow-x: hidden;
    font-size: 14px;
}

/* Sidebar Stilleri */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: var(--text-primary);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.animate {
    transition: all var(--transition-speed) ease;
}

.sidebar.hidden {
    left: calc(-1 * var(--sidebar-width));
}

.sidebar-header {
    padding: 20px;
}

.sidebar-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Menü Stilleri */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    padding: 2px 10px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    position: relative;
    border-radius: 5px;
}

.menu-link:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.menu-link.active {
    background: var(--active-bg);
    color: var(--text-primary);
}

.menu-link i {
    width: 20px;
    margin-right: 10px;
    font-size: 18px;
}

.menu-link .menu-arrow {
    font-size: 15px;
    width: 15px;
    height: 15px;
    overflow: hidden;
    margin-left: auto;
    transition: transform var(--transition-speed) ease;
    width: auto;
    margin-right: 0;
}

.menu-link .menu-arrow.rotated {
    transform: rotate(90deg);
}

/* Alt Menü Stilleri */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
}

.submenu.animate {
    transition: max-height var(--transition-speed) ease;
}

.submenu.show {
    max-height: 500px;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 10px 15px 10px 51px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-size: 13px;
    border-radius: 5px;
    margin: 2px 0 ;
}

.submenu-link:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    padding-left: 60px;
}

.submenu-link.active {
    background: var(--active-dark);
    color: var(--text-primary);
}

/* Content Area */
.content-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.content-wrapper.animate {
    transition: all var(--transition-speed) ease;
}

.content-wrapper.expanded {
    margin-left: 0;
}

/* Navbar */
.navbar-custom {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 15px 20px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle-btn {
    border: none;
    padding: 8px 10px 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: all var(--transition-speed) ease;
    margin-right: 15px;
}

.menu-toggle-btn:hover {
    background: var(--primary-color);
    color: white;
}


@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Content */
.content {
    padding: 23px 10px;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }

    .sidebar.show {
        left: 0;
    }

    .content-wrapper {
        margin-left: 0;
    }

    /* Overlay for mobile */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .sidebar-overlay.show {
        display: block;
    }

    #top-menu {
        display: none;
    }
}

/* Scrollbar Özelleştirme */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--secondary-dark);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #4a5f7f;
}



.card-header {
    min-height: 50px;
}

.btn {border-radius: 3px;}



:root {
    --bs-primary: #0D47A1;
    --bs-primary-rgb: 13, 71, 161;
}

/* Primary background */
.bg-primary {
    background-color: var(--bs-primary) !important;
}

/* Primary text */
.text-primary {
    color: var(--bs-primary) !important;
}

/* Primary border */
.border-primary {
    border-color: var(--bs-primary) !important;
}

/* Buttons */
.btn-primary {
    color: #fff;
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0d1636 !important; /* daha koyu bir ton */
    border-color: #0b122f !important;
}

/* Alerts */
.alert-primary {
    color: #fff;
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

/* Badges */
.badge.bg-primary {
    background-color: var(--bs-primary) !important;
}

/* Pagination */
.page-item.active .page-link {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-outline-primary {
    border-color: var(--bs-primary) !important;
    color: var(--bs-primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--bs-primary) !important;
    color: #fff!important;
}



.dt-paging .pagination button {font-size: 13px; padding: 5px 10px;}
.btn-sm {font-size: 13px;}
table.dataTable, table.bordered {border: 1px solid #dee2e6;}
table.dataTable tbody td {min-height: 70px!important; padding-top: 15px; padding-bottom: 15px; }
table.table thead th, table.bordered th {font-size: 14px; background: #e9ecef!important;}
table.table tbody td {vertical-align: middle;}
table.dataTable * {white-space: nowrap!important;}
