/* Genel Stil */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e6e9f0 0%, #eef1f5 100%);
    margin: 0;
    overflow-x: hidden;
}

/* Üst Menü (Navbar) */
.navbar {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    padding: 0.75rem 1rem;
    height: 70px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.7rem;
    color: #fff !important;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #e5e7eb !important;
}

.navbar-brand i {
    font-size: 1.5rem;
    margin-right: 8px;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e5e7eb !important;
}

.navbar-nav .btn-outline-light {
    border-color: #fff;
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-nav .btn-outline-light:hover {
    background-color: #fff;
    color: #2563eb;
    transform: translateY(-2px);
}

/* Dropdown Menü */
.dropdown-menu {
    background: #1e3a8a;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    min-width: 200px;
}

.dropdown-item {
    color: #e5e7eb;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dropdown-item i {
    margin-right: 8px;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2);
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}


/* Yan Menü (Sidebar) */
.sidebar {
    width: 240px;
    position: fixed;
    top: 70px;
    left: 0;
    height: calc(100vh - 70px);
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
    padding: 15px;
    z-index: 1040;
    transition: transform 0.3s ease, width 0.3s ease;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #60a5fa #1e3a8a;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1e3a8a;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #60a5fa;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

.sidebar-header {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.sidebar .nav-link {
    color: #e5e7eb;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    margin: 4px 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateX(3px);
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Toggle Butonu */
.toggle-btn {
    position: fixed;
    top: 80px;
    left: 15px;
    z-index: 1060;
    border-radius: 6px;
    padding: 8px 12px;
    background: #3b82f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Sidebar Backdrop */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1039;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Mobil cihazlar için katlanabilir sidebar */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-240px);
        width: 200px;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .content {
        margin-left: 0 !important;
    }
    .sidebar.active ~ .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }
    .sidebar .nav-link {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    .sidebar-header h4 {
        font-size: 1rem;
    }
}

/* Ana İçerik */
.content {
    margin-left: 240px;
    padding: 100px 30px 30px;
    min-height: 100vh;
    background: #f4f6f9;
    border-radius: 12px;
    transition: margin-left 0.3s ease;
}

@media (max-width: 992px) {
    .content {
        margin-left: 0;
        padding-top: 80px;
    }
}

.page-title {
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 20px;
}

/* Kartlar */
.card {
    border: none;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f9fafb);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1e3a8a;
    padding: 15px 20px;
}

.card-title {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.card.border-primary, .card.border-success, .card.border-danger, .card.border-warning, .card.border-info {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card.border-primary .card-body {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.card.border-success .card-body {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.card.border-danger .card-body {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.card.border-warning .card-body {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.card.border-info .card-body {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.card .card-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
}

.card .card-title.text-primary, 
.card .card-title.text-success, 
.card .card-title.text-danger, 
.card .card-title.text-warning, 
.card .card-title.text-info {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Butonlar */
.btn-primary {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: #3b82f6;
    color: #3b82f6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #3b82f6;
    color: #fff;
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: #fff;
}

/* Formlar */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Tablolar */
.table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.table th {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-weight: 600;
    padding: 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table td {
    padding: 15px;
    vertical-align: middle;
    font-size: 0.9rem;
    color: #1f2a44;
}

.table-hover tbody tr:hover {
    background: #eff6ff;
}

/* Status Badges */
.badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge.status-borclu, .badge.status-iptal {
    background-color: #f8d7da;
    color: #721c24;
}

.badge.status-guncel, .badge.status-odendi {
    background-color: #d4edda;
    color: #155724;
}

.badge.status-odenmis, .badge.status-beklemede {
    background-color: #fff3cd;
    color: #856404;
}

.badge.status-harcama {
    background-color: #f8d7da;
    color: #721c24;
}

.badge.status-gelir {
    background-color: #d4edda;
    color: #155724;
}

/* Alert Mesajları */
.alert {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-dismissible .btn-close {
    padding: 1rem;
}

/* Modal */
.modal-content {
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-weight: 600;
    color: #1e3a8a;
}

.modal-body {
    padding: 20px;
}

/* Login Sayfası Stilleri */
.login-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.login-card {
    border-radius: 15px;
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.login-logo {
    max-width: 100%;
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.form-control {
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    border-right: none;
    background-color: #f8f9fa;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.alert {
    border-radius: 8px;
    font-size: 0.9rem;
}

.text-primary {
    color: #007bff !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-muted:hover {
    color: #0056b3 !important;
}

.form-label {
    font-weight: 500;
    color: #333;
}

/* Grafik Stilleri */
.canvas-container {
    max-width: 600px;
    margin: 0 auto 30px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* PDF İndirme Butonu */
.btn-pdf {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-pdf:hover {
    background: linear-gradient(90deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
}

/* Responsive Ayarları */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.4rem;
    }
    .navbar-brand i {
        font-size: 1.2rem;
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
	.navbar-nav .btn-outline-light {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    .dropdown-menu {
        min-width: 160px;
    }
    .dropdown-item {
        font-size: 0.9rem;
    }
    .page-title {
        font-size: 1.5rem;
    }
    .toggle-btn {
        top: 70px;
        left: 15px;
        padding: 8px 12px;
    }
}

@media (max-width: 576px) {
    .login-card {
        margin: 20px;
    }
    .login-logo {
        width: 80px;
        max-width: 100%;
    }
    .card-body {
        padding: 15px !important;
    }
    .content {
        padding: 80px 15px 15px;
    }
    .card-title {
        font-size: 1.2rem;
    }
    .card .card-title.text-primary, 
    .card .card-title.text-success, 
    .card .card-title.text-danger, 
    .card .card-title.text-warning, 
    .card .card-title.text-info {
        font-size: 1.5rem;
    }
    .table-responsive {
        font-size: 0.85rem;
    }
    .table th, .table td {
        padding: 10px;
    }
}