/* Custom Theme Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
    --bs-body-bg: #212529;
    --bs-body-color: #dee2e6;
}

/* Body Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

[data-bs-theme="dark"] .footer {
    background-color: #343a40 !important;
    border-top-color: #495057;
}

/* Navbar Enhancements */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    border: none;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 1.25rem;
}

/* Card Styles */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

[data-bs-theme="dark"] .card {
    background-color: #2c3034;
    border-color: #495057;
}

[data-bs-theme="dark"] .card-header {
    background-color: #343a40;
}

/* Button Enhancements */
.btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

.btn i {
    margin-right: 0.25rem;
}

/* Table Styles */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
    transform: scale(1.01);
}

[data-bs-theme="dark"] .table {
    color: #dee2e6;
}

[data-bs-theme="dark"] .table thead th {
    background-color: #343a40;
}

[data-bs-theme="dark"] .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Form Styles */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

[data-bs-theme="dark"] .form-label {
    color: #adb5bd;
}

.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #343a40;
    border-color: #495057;
    color: #dee2e6;
}

/* Badge Styles */
.badge {
    padding: 0.5em 0.75em;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Alert Styles */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Modal Enhancements */
.modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.5rem 0.5rem 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

[data-bs-theme="dark"] .modal-content {
    background-color: #2c3034;
}

[data-bs-theme="dark"] .modal-header {
    background-color: #343a40;
}

/* Theme Toggle Button */
#themeToggle {
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

#themeToggle:hover {
    transform: rotate(20deg) scale(1.1);
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Dashboard Stats Cards */
.stat-card {
    border-left: 4px solid var(--primary-color);
}

.stat-card.success {
    border-left-color: var(--success-color);
}

.stat-card.warning {
    border-left-color: var(--warning-color);
}

.stat-card.danger {
    border-left-color: var(--danger-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .table {
        font-size: 0.875rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Tab Navigation Styles for Customer Statement */
.nav-tabs .nav-link {
    color: #212529;
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: #dee2e6;
}

[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
    color: #fff;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    color: #fff;
    background-color: #343a40;
    border-color: #495057 #495057 #343a40;
}

[data-bs-theme="dark"] .card-header.bg-light {
    background-color: #343a40 !important;
}

/* Dark mode için badge ikon renkleri */
[data-bs-theme="dark"] .nav-tabs .text-primary {
    color: #6ea8fe !important;
}

[data-bs-theme="dark"] .nav-tabs .text-warning {
    color: #ffca2c !important;
}

[data-bs-theme="dark"] .nav-tabs .text-success {
    color: #75b798 !important;
}

[data-bs-theme="dark"] .nav-tabs .text-info {
    color: #6edff6 !important;
}

[data-bs-theme="dark"] .nav-tabs .text-secondary {
    color: #adb5bd !important;
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, #themeToggle {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
