/* Ana Stiller */
:root {
    --sidebar-width: 250px;
    --navbar-height: 56px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    padding-top: var(--navbar-height);
}

/* Navbar */
.navbar {
    height: var(--navbar-height);
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    padding: 1rem;
    background-color: #fff;
    box-shadow: 1px 0 5px rgba(0,0,0,.05);
    overflow-y: auto;
    z-index: 1020;
    transition: all 0.3s ease-in-out;
}

.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.sidebar .nav-link.active {
    background-color: #e7f1ff;
    color: #0d6efd;
    font-weight: 500;
}

.sidebar .nav-link i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

/* Ana İçerik */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 1.5rem;
    min-height: calc(100vh - var(--navbar-height));
    position: relative;
}

/* Kartlar */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    margin-bottom: 1.5rem;
    position: relative;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,.125);
    padding: 1rem;
}

.card-body {
    padding: 1rem;
}

/* Tablolar */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 500;
}

/* Formlar */
.form-control, .form-select {
    border-radius: 0.375rem;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* Modal */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

/* Toast */
.toast-container {
    z-index: 1060;
}

/* Buttons */
.btn-group {
    position: relative;
    z-index: 2;
}

.btn-group .btn {
    position: relative;
}

/* Page Header Actions */
.page-header-actions {
    position: relative;
    z-index: 3;
}

/* Dropdown Menus */
.dropdown-menu {
    z-index: 1050;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        width: 280px;
        left: -280px;
    }
    
    .sidebar.show {
        left: 0;
    }

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

    body {
        padding-top: calc(var(--navbar-height) + 1rem);
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        border: 1px solid rgba(255,255,255,0.3);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
    }
}

/* Yardımcı Sınıflar */
.text-truncate {
    max-width: 150px;
    display: inline-block;
}

/* Todo Styles */
.todo-item {
    transition: all 0.3s ease;
}

.todo-item.completed {
    text-decoration: line-through;
    color: #6c757d;
    opacity: 0.7;
}

.todo-checkbox {
    cursor: pointer;
}

.todo-label {
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}