/**
 * Güzellik Merkezi CRM - Profesyonel Güzellik Merkezi Tasarımı
 * Renk Paleti: Pembe, Mor, Altın Tonları
 */

:root {
    --primary-color: #d63384; /* Pembe */
    --secondary-color: #9d4edd; /* Mor */
    --accent-color: #f77f00; /* Altın/Turuncu */
    --success-color: #06d6a0; /* Yeşil */
    --info-color: #4cc9f0; /* Açık Mavi */
    --warning-color: #ffd166; /* Sarı */
    --danger-color: #ef476f; /* Kırmızı */
    --light-pink: #f8d7da;
    --light-purple: #e9d5ff;
    --gradient-primary: linear-gradient(135deg, #d63384 0%, #9d4edd 100%);
    --gradient-secondary: linear-gradient(135deg, #9d4edd 0%, #7209b7 100%);
    --gradient-gold: linear-gradient(135deg, #f77f00 0%, #fcbf49 100%);
}

body {
    background: linear-gradient(135deg, #f5f3ff 0%, #fce7f3 50%, #fff5f5 100%);
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

/* Profesyonel Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

/* Navbar - Güzellik Merkezi Teması */
.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: 0 2px 8px rgba(214, 51, 132, 0.2);
    padding: 0.4rem 0;
    min-height: 48px;
}

.navbar-brand {
    font-size: 1rem;
    padding: 0.25rem 0;
    font-weight: 600;
}

.navbar-nav .nav-link {
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
}

.navbar-toggler {
    padding: 0.2rem 0.4rem;
    font-size: 0.9rem;
    border: none;
}

@media (max-width: 768px) {
    /* Mobilde header'ı tamamen gizle */
    .navbar {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        background: var(--gradient-primary) !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
        opacity: 0;
        box-shadow: none;
        padding: 0 !important;
    }
    
    /* Menü açıldığında göster - navbar'ın üstüne kadar, sayfayı kaplamasın */
    .navbar.show {
        display: block !important;
        max-height: calc(100vh - 80px); /* Bottom navbar için alan bırak */
        overflow-y: auto;
        padding: 1rem 0 !important;
        box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
        transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
        opacity: 1;
    }
    
    .navbar.show .navbar-brand {
        font-size: 0.9rem !important;
        padding: 0.25rem 0 !important;
    }
    
    .navbar.show .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .navbar.show .navbar-toggler {
        padding: 0.25rem 0.5rem !important;
    }
    
    body {
        padding-top: 0 !important;
    }
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.navbar-brand i {
    color: #ffd700;
    margin-right: 8px;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.3);
    color: white !important;
}

.navbar-nav .nav-link i {
    margin-right: 6px;
    font-size: 1.1rem;
}

/* Cards - Şık ve Modern */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(214, 51, 132, 0.08);
    margin-bottom: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: white;
    border: 1px solid rgba(214, 51, 132, 0.1);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(214, 51, 132, 0.15);
    border-color: rgba(214, 51, 132, 0.2);
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
}

.card-header.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.card-header i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.card-body {
    padding: 1.75rem;
}

@media (max-width: 768px) {
    .card-body {
        padding: 1.25rem;
    }
}

/* Buttons - Güzellik Merkezi Stili */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.25);
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(214, 51, 132, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
}

.btn-success {
    background: linear-gradient(135deg, #06d6a0 0%, #06a085 100%);
    border: none;
    border-radius: 10px;
}

.btn-danger {
    background: linear-gradient(135deg, #ef476f 0%, #d62828 100%);
    border: none;
    border-radius: 10px;
}

.btn-warning {
    background: linear-gradient(135deg, #ffd166 0%, #f77f00 100%);
    border: none;
    border-radius: 10px;
    color: #333;
}

.btn-info {
    background: linear-gradient(135deg, #4cc9f0 0%, #118ab2 100%);
    border: none;
    border-radius: 10px;
}

.btn-action {
    margin: 0 3px;
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
}

/* Stat Cards - Dashboard */
.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(214, 51, 132, 0.1);
    box-shadow: 0 2px 12px rgba(214, 51, 132, 0.06);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(214, 51, 132, 0.12);
    border-color: rgba(214, 51, 132, 0.2);
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 15px 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card.income .stat-value {
    background: linear-gradient(135deg, #06d6a0 0%, #06a085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card.expense .stat-value {
    background: linear-gradient(135deg, #ef476f 0%, #d62828 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card.profit .stat-value {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Gelecek Randevu - Kart/Buton chip'leri (liste ve detay) */
.appointment-chip {
    white-space: nowrap;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.appointment-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.2);
}
.appointment-card-link {
    border-radius: 12px;
    border: 1px solid rgba(214, 51, 132, 0.3);
    min-width: 200px;
    transition: all 0.2s ease;
}
.appointment-card-link:hover {
    border-color: var(--primary-color);
    background: rgba(214, 51, 132, 0.06);
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.12);
}

/* Tables - Modern ve Temiz */
.table {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead {
    background: var(--gradient-primary);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    padding: 1.125rem 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.table tbody tr {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #f1f5f9;
}

.table tbody tr:hover {
    background-color: #fef3f8;
    transform: scale(1.002);
    box-shadow: 0 2px 8px rgba(214, 51, 132, 0.08);
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Badges - Renkli ve Şık */
.badge {
    padding: 0.5rem 0.875rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bg-purple {
    background: linear-gradient(135deg, #9d4edd 0%, #7209b7 100%) !important;
    color: white;
}

.bg-pink {
    background: linear-gradient(135deg, #d63384 0%, #c2185b 100%) !important;
    color: white;
}

.bg-gold {
    background: var(--gradient-gold) !important;
    color: white;
}

/* Forms - Modern Inputlar */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 0.875rem 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    background-color: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(214, 51, 132, 0.1);
    transform: translateY(-1px);
    outline: none;
    background-color: #fff;
}

.form-control:hover, .form-select:hover {
    border-color: #cbd5e0;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Login Page - Güzellik Merkezi Teması */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: move 20s linear infinite;
}

@keyframes move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.login-card {
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-card .card-header {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 30px;
    border: none;
}

.login-card .card-header i {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 10px;
}

.login-card .card-body {
    padding: 40px;
    background: white;
}

/* Alerts - Şık Mesajlar */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1.125rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* Modals - Modern Popup'lar */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 70px rgba(0,0,0,0.25);
    overflow: hidden;
    border: 1px solid rgba(214, 51, 132, 0.1);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border: none;
    padding: 1.5rem;
    background: #f8f9fa;
}

/* Filters - Filtreleme Alanı */
.filters {
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(214, 51, 132, 0.08);
    border: 1px solid rgba(214, 51, 132, 0.1);
}

/* Customer Detail Sections */
.customer-detail-section {
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(214, 51, 132, 0.08);
    border: 1px solid rgba(214, 51, 132, 0.1);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--light-pink);
    letter-spacing: -0.02em;
}

/* Payment Status */
.payment-status {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.payment-status.paid {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.payment-status.partial {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.payment-status.unpaid {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* Footer */
footer {
    background: var(--gradient-primary);
    color: white;
    margin-top: 50px;
    padding: 2rem 0;
    text-align: center;
}

footer small {
    color: rgba(255, 255, 255, 0.9);
}

/* Dropdown Menus */
.dropdown-menu {
    border-radius: 12px;
    border: 1px solid rgba(214, 51, 132, 0.1);
    box-shadow: 0 8px 24px rgba(214, 51, 132, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--light-pink);
    color: var(--primary-color);
}

/* Responsive - Mobil Optimizasyonu */
@media (max-width: 768px) {
    /* Genel Düzenlemeler */
    body {
        font-size: 0.9rem;
    }
    
    .stat-card .stat-value {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Navbar - Mobil için */
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    /* Modals - Mobil için tam ekran ve düzenli */
    .modal {
        padding: 0 !important;
    }
    
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100%;
    }
    
    /* Tüm modal boyutları mobilde tam ekran */
    .modal-dialog.modal-sm,
    .modal-dialog.modal-lg,
    .modal-dialog.modal-xl {
        max-width: 100%;
        width: 100%;
        height: 100%;
        margin: 0;
    }
    
    .modal-dialog-centered {
        align-items: stretch;
    }
    
    .modal-content {
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        border: none;
        margin: 0;
    }
    
    .modal-header {
        padding: 1rem;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .modal-header .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: auto;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }
    
    /* Modal içindeki tablolar için horizontal scroll */
    .modal-body .table-responsive {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        touch-action: pan-x pan-y;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    /* Modal içindeki form elemanları için scroll */
    .modal-body form {
        max-width: 100%;
        overflow-x: auto;
        touch-action: pan-x pan-y;
    }
    
    /* Seans düzenle modal içeriği için özel scroll */
    .modal-body #editSessionContent {
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        padding: 0.5rem;
        touch-action: pan-x pan-y;
    }
    
    .modal-body #editSessionContent .table-responsive {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        min-width: 100%;
        margin: 0;
        padding: 0;
        touch-action: pan-x pan-y;
    }
    
    .modal-body #editSessionContent table {
        min-width: 600px;
        width: 100%;
        margin-bottom: 0;
    }
    
    /* Tüm modal içerikleri için scroll */
    .modal-body > * {
        max-width: 100%;
    }
    
    /* Taksit ödeme modal içeriği */
    .modal-body #installmentPaymentModalContent {
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-shrink: 0;
        border-top: 1px solid #dee2e6;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        flex: 1;
        min-width: 120px;
    }
    
    /* Modal içi tablolar */
    .modal-body .table {
        font-size: 0.8rem;
    }
    
    .modal-body .table thead th {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .modal-body .table tbody td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    /* Tablolar - Mobil için scroll ve düzenli */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    
    .table {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    .table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .table tbody td {
        padding: 0.75rem 0.5rem;
        vertical-align: middle;
    }
    
    /* Tablo içindeki badge'ler */
    .table .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Butonlar - Mobil için daha büyük ve dokunma dostu */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 44px; /* iOS dokunma hedefi */
        border-radius: 8px;
    }
    
    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        min-height: 36px;
    }
    
    .btn-action {
        margin: 0.25rem;
        padding: 0.5rem;
    }
    
    /* Form elemanları - Mobil için daha büyük */
    .form-control, .form-select {
        padding: 0.75rem;
        font-size: 1rem;
        min-height: 44px; /* iOS dokunma hedefi */
        border-radius: 8px;
    }
    
    .form-control-sm {
        padding: 0.5rem;
        font-size: 0.9rem;
        min-height: 36px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Input grupları */
    .input-group {
        flex-wrap: wrap;
    }
    
    .input-group .btn {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    /* Container - Mobil için padding azalt */
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-bottom: 80px; /* Bottom navbar için alan */
    }
    
    /* Card header - Mobil için küçült */
    .card-header {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    /* Card içi düzenlemeler */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Row ve Col düzenlemeleri */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Badge'ler */
    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Alert'ler */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Dropdown menüler */
    .dropdown-menu {
        max-width: 100%;
        font-size: 0.9rem;
    }
    
    /* Filters */
    .filters {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Customer Detail Sections */
    .customer-detail-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Section Title */
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* Stat Cards */
    .stat-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    /* Gelecek Randevu - Mobilde tam genişlik kartlar */
    .appointment-chip {
        white-space: normal;
        text-align: left;
        flex: 1 1 100%;
    }
    .appointment-card-link {
        min-width: 100%;
        width: 100%;
    }
    
    /* Grid düzenlemeleri */
    .row.g-3 > * {
        margin-bottom: 1rem;
    }
    
    /* Text düzenlemeleri */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
    
    /* Spacing düzenlemeleri */
    .mt-4 { margin-top: 1.5rem !important; }
    .mt-5 { margin-top: 2rem !important; }
    .mb-4 { margin-bottom: 1.5rem !important; }
    .mb-5 { margin-bottom: 2rem !important; }
    .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    
    /* Form check */
    .form-check {
        margin-bottom: 0.75rem;
    }
    
    .form-check-label {
        font-size: 0.9rem;
        padding-left: 0.5rem;
    }
    
    /* Form switch */
    .form-switch .form-check-input {
        width: 2.5em;
        height: 1.5em;
    }
    
    /* Tablo içindeki input'lar */
    .table .form-control,
    .table .form-select {
        font-size: 0.8rem;
        padding: 0.4rem;
        min-height: 32px;
    }
    
    /* Tablo içindeki butonlar */
    .table .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-height: 32px;
    }
    
    /* Success message container */
    #successMessageContainer {
        position: fixed;
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: 100%;
        z-index: 1055;
    }
}

/* Bottom Navbar - Sadece Mobilde */
@media (max-width: 768px) {
    body {
        padding-bottom: 75px; /* Bottom navbar için alan bırak */
    }
    
    .bottom-navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--gradient-primary);
        box-shadow: 0 -4px 20px rgba(214, 51, 132, 0.35);
        z-index: 1000;
        padding: 0.75rem 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        backdrop-filter: blur(10px);
    }
    
    .bottom-navbar > a:not(.bottom-navbar-add-btn),
    .bottom-navbar > div {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .bottom-navbar > div {
        flex: 0 0 64px;
        position: relative;
    }
    
    .bottom-navbar a:not(.bottom-navbar-add-btn) {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        padding: 0.5rem 0.25rem;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 0.75rem;
        position: relative;
    }
    
    .bottom-navbar a i {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
        transition: all 0.3s ease;
    }
    
    .bottom-navbar a:hover,
    .bottom-navbar a.active {
        background-color: rgba(255, 255, 255, 0.25);
        color: white;
        transform: translateY(-2px);
    }
    
    .bottom-navbar a.active::before {
        content: '';
        position: absolute;
        top: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 3px;
        background: white;
        border-radius: 0 0 3px 3px;
    }
    
    .bottom-navbar a span {
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0.3px;
    }
    
    /* Ortadaki + butonu */
    .bottom-navbar-add-btn {
        width: 64px !important;
        height: 64px !important;
        border-radius: 50% !important;
        background: var(--gradient-primary) !important;
        color: white !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 6px 20px rgba(214, 51, 132, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
        transform: translateY(-12px) !important;
        margin: 0 !important;
        border: 4px solid white !important;
        position: relative !important;
        z-index: 10;
    }
    
    .bottom-navbar-add-btn i {
        font-size: 2rem !important;
        margin: 0 !important;
        font-weight: 300;
    }
    
    .bottom-navbar-add-btn:hover,
    .bottom-navbar-add-btn:active {
        background: var(--gradient-secondary) !important;
        transform: translateY(-14px) scale(1.08) !important;
        box-shadow: 0 8px 25px rgba(214, 51, 132, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.2) !important;
    }
    
    .bottom-navbar-add-btn span {
        display: none !important;
    }
    
    /* Menü butonu */
    .bottom-navbar-menu-btn {
        cursor: pointer;
    }
    
    .bottom-navbar-menu-btn:hover {
        background-color: rgba(255, 255, 255, 0.25) !important;
    }
}

/* Desktop'ta bottom navbar gizle */
@media (min-width: 769px) {
    .bottom-navbar {
        display: none !important;
    }
    
    .container-fluid {
        margin-bottom: 0 !important;
    }
}

/* Tablet için orta boyut düzenlemeler */
@media (min-width: 769px) and (max-width: 1024px) {
    .modal-dialog {
        max-width: 90%;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* Scrollbar - Özel Tasarım */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d63384 0%, #9d4edd 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9d4edd 0%, #7209b7 100%);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.table tbody tr {
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.table tbody tr:nth-child(5) { animation-delay: 0.25s; }

/* Smooth transitions for all interactive elements */
a, button, .btn, .form-control, .form-select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better spacing */
.mb-4 {
    margin-bottom: 2rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

/* Improved list groups */
.list-group-item {
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #fef3f8;
    border-color: rgba(214, 51, 132, 0.2);
    transform: translateX(4px);
}

/* Mobil müşteri kartları */
.customer-card-mobile {
    animation: fadeIn 0.3s ease;
}

.customer-card-mobile .card {
    transition: all 0.3s ease;
}

.customer-card-mobile .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.15) !important;
}

/* Lazer Takip Özel Stiller */
.bg-purple {
    background: linear-gradient(135deg, #9d4edd 0%, #7209b7 100%) !important;
}

.shadow-sm {
    box-shadow: 0 2px 12px rgba(214, 51, 132, 0.08) !important;
}

/* Input groups */
.input-group {
    border-radius: 12px;
    overflow: hidden;
}

.input-group .form-control {
    border-radius: 12px 0 0 12px;
}

.input-group .btn {
    border-radius: 0 12px 12px 0;
}

/* Loading states */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Better focus states */
*:focus {
    outline: none;
}

.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(214, 51, 132, 0.1);
}

/* Improved spacing utilities */
.gap-2 {
    gap: 0.75rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

/* Müşteri Arama (Tom Select) - Tema uyumu + z-index + mobil */
.ts-wrapper {
    flex: 1;
}
.ts-wrapper.single .ts-control {
    padding: 0.375rem 0.75rem;
    min-height: 38px;
    border-radius: 0.375rem;
}
.ts-wrapper .ts-control {
    border-color: #dee2e6;
}
.ts-wrapper.focus .ts-control,
.ts-wrapper.active .ts-control {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.25);
}
/* Tom Select dropdown - modal/popup üzerinde görünsün */
.ts-dropdown {
    z-index: 99999 !important;
}
/* Mobil: tıklayınca zoom olmasın, ekran sabit kalsın */
.ts-control input {
    font-size: 16px !important;
    touch-action: manipulation;
}
.ts-wrapper {
    touch-action: manipulation;
}

/* ============================================
   CORPORATE APP THEME OVERRIDES (SAFE LAYER)
   Existing flow untouched, visuals upgraded.
============================================ */
:root {
    --primary-color: #7a5b41;
    --secondary-color: #a58667;
    --accent-color: #b5966f;
    --success-color: #4f7a5a;
    --info-color: #6f8a96;
    --warning-color: #b0895a;
    --danger-color: #a24f4f;
    --surface-color: #fffaf7;
    --surface-soft: #f6f0eb;
    --surface-rose: #f7edef;
    --text-strong: #2f241c;
    --text-muted: #6a5b50;
    --line-soft: rgba(122, 91, 65, 0.18);
    --glow-soft: rgba(181, 150, 111, 0.25);
    --gradient-primary: linear-gradient(135deg, #6f5038 0%, #a58667 52%, #d8c2a0 100%);
    --gradient-secondary: linear-gradient(135deg, #8e6d51 0%, #b99c7c 100%);
    --gradient-gold: linear-gradient(135deg, #9d7a53 0%, #cfb089 100%);
    --gradient-surface: radial-gradient(circle at 20% 0%, #fffdfb 0%, #f8f2ed 48%, #f4ece8 100%);
    --btn-shadow-3d: 0 10px 18px rgba(90, 67, 48, 0.28), 0 3px 0 rgba(74, 53, 36, 0.9);
}

body {
    background: var(--gradient-surface);
    color: var(--text-strong);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-strong);
}

p, .text-muted, small {
    color: var(--text-muted) !important;
}

.navbar {
    background: linear-gradient(110deg, rgba(63, 44, 31, 0.97), rgba(110, 84, 60, 0.95), rgba(147, 116, 84, 0.92)) !important;
    border-bottom: 1px solid rgba(216, 194, 160, 0.38);
    box-shadow: 0 10px 28px rgba(55, 38, 26, 0.35);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    letter-spacing: 0.5px;
    font-weight: 700;
}

.navbar-brand i {
    color: #dfc49f;
    text-shadow: 0 0 12px rgba(223, 196, 159, 0.35);
}

.navbar-nav .nav-link {
    border: 1px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255, 245, 236, 0.17);
    border-color: rgba(237, 208, 171, 0.35);
}

.card,
.filters,
.customer-detail-section {
    background: linear-gradient(180deg, #fffdfb 0%, #fdf7f2 100%);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(104, 74, 52, 0.12);
}

.card:hover {
    box-shadow: 0 12px 32px rgba(104, 74, 52, 0.2);
}

.card-header {
    background: var(--gradient-primary) !important;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.btn {
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-secondary {
    position: relative;
    transform: translateY(0);
    box-shadow: var(--btn-shadow-3d);
}

.btn-primary {
    background: var(--gradient-primary);
    border-color: rgba(81, 58, 40, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, #7e6b59 0%, #5f4d3e 100%);
    border-color: rgba(50, 38, 30, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, #638d6d 0%, #3f634b 100%);
    border-color: rgba(48, 74, 56, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #b15d5d 0%, #8f4343 100%);
    border-color: rgba(99, 47, 47, 0.45);
}

.btn-warning {
    background: linear-gradient(135deg, #c09a69 0%, #a37645 100%);
    color: #fff;
    border-color: rgba(122, 89, 54, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #7d97a2 0%, #5d7784 100%);
    border-color: rgba(73, 96, 108, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.05) brightness(1.03);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 5px 12px rgba(90, 67, 48, 0.22), 0 1px 0 rgba(74, 53, 36, 0.95);
}

.form-control, .form-select, .ts-wrapper .ts-control {
    background-color: #fffdfa;
    border-color: rgba(122, 91, 65, 0.26);
    color: var(--text-strong);
}

.form-control:focus, .form-select:focus,
.ts-wrapper.focus .ts-control, .ts-wrapper.active .ts-control {
    border-color: #a3825f;
    box-shadow: 0 0 0 4px rgba(181, 150, 111, 0.2);
}

.table {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(122, 91, 65, 0.2);
}

.table thead {
    background: linear-gradient(135deg, #6b4d35 0%, #9f8061 100%);
}

.table tbody tr {
    border-bottom: 1px solid rgba(122, 91, 65, 0.1);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, #fffaf6 0%, #f9efe8 100%);
    box-shadow: inset 3px 0 0 rgba(181, 150, 111, 0.8);
}

.badge {
    border: 1px solid rgba(90, 67, 48, 0.15);
}

.bg-purple {
    background: linear-gradient(135deg, #8b7155 0%, #69513b 100%) !important;
}

.bg-pink {
    background: linear-gradient(135deg, #b49379 0%, #8a6b53 100%) !important;
}

.bg-gold {
    background: linear-gradient(135deg, #a3835f 0%, #d0b08c 100%) !important;
}

.dropdown-menu {
    background: #fffaf6;
    border-color: rgba(133, 101, 73, 0.25);
    box-shadow: 0 14px 28px rgba(98, 70, 49, 0.2);
}

.dropdown-item:hover {
    background: #f4e6d9;
    color: #62462f;
}

.modal-content {
    background: linear-gradient(180deg, #fffdfa 0%, #f8f0ea 100%);
    border: 1px solid rgba(122, 91, 65, 0.22);
}

.modal-header {
    background: var(--gradient-primary) !important;
}

.modal-footer {
    background: #f8eee6;
}

.alert {
    background: #fff8f1;
    border: 1px solid rgba(122, 91, 65, 0.22);
}

.alert-success {
    background: linear-gradient(135deg, #edf7ef 0%, #ddeee1 100%);
}

.alert-danger {
    background: linear-gradient(135deg, #fceeee 0%, #f5dfdf 100%);
}

.alert-info {
    background: linear-gradient(135deg, #eef4f6 0%, #dfe9ed 100%);
}

.stat-card {
    background: linear-gradient(160deg, #fffdfb 0%, #f6ede7 100%);
}

.stat-card .stat-value,
.stat-card.income .stat-value,
.stat-card.expense .stat-value,
.stat-card.profit .stat-value {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.appointment-card-link {
    border-color: rgba(133, 101, 73, 0.35);
}

.appointment-card-link:hover {
    background: rgba(181, 150, 111, 0.12);
    border-color: #a07f5d;
}

.login-container {
    background: linear-gradient(135deg, #4a3628 0%, #7b5e46 45%, #b69773 100%);
}

.login-card {
    border: 1px solid rgba(255, 240, 225, 0.22);
    box-shadow: 0 24px 60px rgba(45, 30, 18, 0.45);
}

.login-card .card-body {
    background: linear-gradient(180deg, #fffefc 0%, #f8f1eb 100%);
}

.bottom-navbar {
    background: linear-gradient(95deg, #4a3526 0%, #70543d 48%, #97785c 100%) !important;
    box-shadow: 0 -6px 24px rgba(70, 49, 34, 0.45);
    border-top: 1px solid rgba(239, 218, 189, 0.25);
}

.bottom-navbar a:hover,
.bottom-navbar a.active {
    background-color: rgba(255, 248, 239, 0.2);
}

.bottom-navbar-add-btn {
    background: linear-gradient(135deg, #a27f5c 0%, #c6a883 100%) !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
}

.bottom-navbar-add-btn:hover,
.bottom-navbar-add-btn:active {
    background: linear-gradient(135deg, #8f6d4d 0%, #b9966d 100%) !important;
}

/* Reusable 3D avatar style for all pages */
.avatar-3d,
.avatar-circle,
.profile-avatar,
.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    background: radial-gradient(circle at 30% 25%, #dec4a2 0%, #a08060 48%, #6c4f39 100%);
    border: 2px solid rgba(255, 244, 231, 0.75);
    box-shadow: 0 8px 16px rgba(86, 62, 43, 0.32), inset 0 2px 6px rgba(255, 255, 255, 0.35);
}

.avatar-3d.avatar-lg,
.avatar-circle.avatar-lg,
.profile-avatar.avatar-lg,
.user-avatar.avatar-lg {
    width: 62px;
    height: 62px;
}

/* App-like soft glass surfaces */
.card,
.filters,
.customer-detail-section,
.modal-content,
.dropdown-menu {
    backdrop-filter: blur(6px);
}

/* Motion and smoothness */
.card,
.table tbody tr,
.btn,
.nav-link,
.dropdown-item,
.form-control,
.form-select,
.badge,
.appointment-card-link,
.bottom-navbar a {
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1rem;
    }
    .card-header {
        font-size: 1rem;
    }
    .table thead th {
        font-size: 0.74rem;
    }
}

@media (max-width: 768px) {
    body {
        background: linear-gradient(180deg, #fffdfb 0%, #f4ebe5 100%);
    }
    .card,
    .filters,
    .customer-detail-section {
        border-radius: 14px;
    }
    .btn {
        min-height: 44px;
    }
    .table tbody tr:hover {
        transform: none;
    }
}
