/* assets/css/style.css */
:root {
    --sidebar-width: 250px;
    --primary-color: #4e73df;
    --secondary-color: #858796;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fc;
    transition: background-color 0.3s, color 0.3s;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #4e73df;
    background: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    color: white;
    z-index: 1000;
    transition: all 0.3s;
}

.sidebar-brand {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    color: white;
    background-color: rgba(0,0,0,0.1);
}

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

.sidebar-link {
    display: block;
    padding: 0.8rem 1.5rem; /* Padding artırıldı */
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: 0.2s;
    display: flex;
    align-items: center;
    font-weight: 500; /* Kalınlık eklendi */
}

.sidebar-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-link:hover, .sidebar-link.active {
    color: white;
    background-color: rgba(255,255,255,0.15); /* Hafif koyu arka plan */
    border-left: 5px solid #1cc88a; /* Daha belirgin bir renk */
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: margin-left 0.3s;
}

/* Topbar */
.topbar {
    background: white;
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.15);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Cards */
.card-dashboard {
    border-left: 4px solid;
    transition: transform 0.2s;
}
.card-dashboard:hover {
    transform: translateY(-5px);
}
.border-left-primary { border-left-color: #4e73df; }
.border-left-success { border-left-color: #1cc88a; }
.border-left-danger { border-left-color: #e74a3b; }
.border-left-warning { border-left-color: #f6c23e; }

/* Mobile */
@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(var(--sidebar-width) * -1);
    }
    .sidebar.active {
        margin-left: 0;
    }
    .main-content {
        margin-left: 0;
    }
}

/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}
body.dark-mode .topbar, 
body.dark-mode .card,
body.dark-mode .modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
}
body.dark-mode .table {
    color: #e0e0e0;
    border-color: #333;
}
body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #2c2c2c;
    border-color: #444;
    color: white;
}

/* Print Styles */
@media print {
    .sidebar, .topbar, .no-print, .btn-group, .dataTables_filter, .dataTables_paginate {
        display: none !important;
    }
    .main-content {
        margin: 0;
        padding: 0;
    }
    .card {
        border: none;
        box-shadow: none;
    }
    .table {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    .table td, .table th {
        border: 1px solid #000 !important;
        padding: 5px !important;
    }
    a {
        text-decoration: none;
        color: black;
    }
}
