@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Custom Styling for musteriler.onurbil.com */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #475569;
    --sidebar-width: 260px;
    --bg-light: #f8fafc;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body, div, p, a, h1, h2, h3, h4, h5, h6, input, button, select, textarea, label, form, table, td, th, .card, .card-header, .card-body, .card-footer, .alert, .badge, .btn, .input-group, .input-group-text {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

i.bi, i[class*="bi-"], span.bi, .bi::before, [class^="bi-"]::before, [class*=" bi-"]::before {
    font-family: 'bootstrap-icons' !important;
    font-style: normal;
    font-weight: normal !important;
}

body {
    background-color: var(--bg-light);
    color: #1e293b;
    margin: 0;
    padding: 0;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

/* Sidebar Styling */
#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: #0f172a;
    color: #f8fafc;
    transition: all 0.3s;
    z-index: 1000;
}

#sidebar .sidebar-header {
    padding: 20px 24px;
    background: #020617;
    border-bottom: 1px solid #1e293b;
}

#sidebar ul.components {
    padding: 10px 0;
}

#sidebar ul li a {
    padding: 12px 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#sidebar ul li a i {
    font-size: 1.15rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

#sidebar ul li a:hover, #sidebar ul li.active > a {
    color: #ffffff;
    background: #1e293b;
    border-left-color: var(--primary-color);
}

/* Sidebar Accordion Group Styling */
.sidebar-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e2e8f0 !important;
    background: #1e293b;
    border: none;
    border-left: 3px solid #3b82f6;
    width: 100%;
    text-decoration: none !important;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.sidebar-group-header:hover {
    background: #334155;
    color: #ffffff !important;
}

.sidebar-group-header .chevron-icon {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
    color: #94a3b8;
}

.sidebar-group-header:not(.collapsed) .chevron-icon {
    transform: rotate(180deg);
    color: #38bdf8;
}

.sidebar-submenu {
    padding-left: 0;
    list-style: none;
    background: #090d16;
}

.sidebar-submenu li a {
    padding: 9px 20px 9px 34px !important;
    font-size: 0.88rem !important;
    color: #94a3b8 !important;
    border-left: 3px solid transparent !important;
}

.sidebar-submenu li a:hover,
.sidebar-submenu li.active > a {
    color: #ffffff !important;
    background: #1e293b !important;
    border-left-color: var(--primary-color) !important;
}

/* Content Area */
#content {
    width: 100%;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f1f5f9;
}

.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 12px 28px;
}

.main-content {
    padding: 28px;
    flex: 1;
}

/* Cards & Components */
.card-stat {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.table-custom {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.table-custom th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.table-custom td {
    padding: 14px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.badge-custom {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.footer-custom {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 16px 28px;
    font-size: 0.875rem;
    color: #64748b;
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
    #sidebar {
        margin-left: -260px;
    }
    #sidebar.active {
        margin-left: 0;
    }
}
