/**
 * REXAVIP - Ana Stil Dosyası
 * Bootstrap 5 üzerine özelleştirmeler
 */

/* ============================================
   CSS DEĞİŞKENLERİ
   ============================================ */
:root {
    --primary-color: #928058;
    --primary-dark: #7a6a49;
    --secondary-color: #000000;
    --accent-gold: #d4af37;
    --body-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0d6efd;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* ============================================
   GLOBAL STILLER
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--body-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--secondary-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    padding: 80px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23928058" opacity="0.1"/></svg>');
    background-size: 50px 50px;
}

.hero-section h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section h1 span {
    color: var(--primary-color);
}

.hero-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

/* ============================================
   TRANSFER WIZARD (SEKMELİ FORM)
   ============================================ */
.transfer-wizard {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0;
    overflow: hidden;
}

.wizard-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
}

.wizard-tab {
    flex: 1;
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--body-bg);
    border: none;
    font-weight: 600;
    color: var(--text-muted);
}

.wizard-tab:hover {
    background: #fff;
    color: var(--primary-color);
}

.wizard-tab.active {
    background: #fff;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: -2px;
}

.wizard-tab i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.wizard-tab.tab-land i { color: var(--primary-color); }
.wizard-tab.tab-air i { color: var(--danger-color); }
.wizard-tab.tab-sea i { color: var(--info-color); }

.wizard-content {
    padding: 2rem;
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
}

/* ============================================
   FORM ELEMENTLERİ
   ============================================ */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(146, 128, 88, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.input-group-text {
    background: var(--body-bg);
    border-color: var(--border-color);
}

/* Select2 Özelleştirmesi */
.select2-container--default .select2-selection--single {
    height: 48px;
    border-radius: var(--border-radius);
    border-color: var(--border-color);
    padding: 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

/* ============================================
   BUTONLAR
   ============================================ */
.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* WhatsApp Butonu */
.btn-whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #128c7e;
    border-color: #128c7e;
    color: #fff;
}

/* ============================================
   KARTLAR
   ============================================ */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-header {
    background: var(--body-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Araç Kartı */
.vehicle-card {
    position: relative;
}

.vehicle-card .vehicle-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.vehicle-card .vehicle-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.vehicle-card .vehicle-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.vehicle-card .feature-badge {
    background: var(--body-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vehicle-card .vehicle-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.vehicle-card .vehicle-price small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================
   HİZMET TÜRLERİ BADGES
   ============================================ */
.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.service-badge-land {
    background: rgba(146, 128, 88, 0.15);
    color: var(--primary-color);
}

.service-badge-air {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger-color);
}

.service-badge-sea {
    background: rgba(13, 110, 253, 0.15);
    color: var(--info-color);
}

/* ============================================
   ADMIN PANEL SIDEBAR
   ============================================ */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    background: var(--secondary-color);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    padding-top: 1rem;
}

.admin-sidebar .brand {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.admin-sidebar .brand a {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.admin-sidebar .nav-item {
    margin: 2px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(146, 128, 88, 0.2);
    border-left: 3px solid var(--primary-color);
}

.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.admin-sidebar .nav-divider {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 1rem 0;
}

.admin-sidebar .nav-section-title {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    letter-spacing: 1px;
}

/* Admin Content */
.admin-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    background: var(--body-bg);
}

.admin-header {
    background: #fff;
    padding: 1rem 2rem;
    margin: -2rem -2rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   DASHBOARD WIDGETS
   ============================================ */
.stat-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-icon.bg-primary { background: rgba(146, 128, 88, 0.15); color: var(--primary-color); }
.stat-card .stat-icon.bg-success { background: rgba(25, 135, 84, 0.15); color: var(--success-color); }
.stat-card .stat-icon.bg-danger { background: rgba(220, 53, 69, 0.15); color: var(--danger-color); }
.stat-card .stat-icon.bg-info { background: rgba(13, 110, 253, 0.15); color: var(--info-color); }

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   TABLOLAR
   ============================================ */
.table {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    background: var(--body-bg);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(146, 128, 88, 0.05);
}

/* ============================================
   DURUM BADGES
   ============================================ */
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d1e7dd; color: #0f5132; }
.status-assigned { background: #cfe2ff; color: #084298; }
.status-in_progress { background: #e2e3e5; color: #41464b; }
.status-completed { background: #198754; color: #fff; }
.status-cancelled { background: #f8d7da; color: #842029; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .wizard-tabs {
        flex-wrap: wrap;
    }
    
    .wizard-tab {
        min-width: 33.33%;
    }
}

@media (max-width: 576px) {
    .wizard-tab i {
        font-size: 1.2rem;
    }
    
    .wizard-tab span {
        font-size: 0.8rem;
    }
    
    .wizard-content {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* ============================================
   ANIMASYONLAR
   ============================================ */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease;
}

/* Yeni Sipariş Uyarısı */
.new-order-alert {
    animation: pulse 1s infinite;
    background: var(--danger-color) !important;
}

/* ============================================
   LOADING / SPINNER
   ============================================ */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--secondary-color);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
}

.footer a:hover {
    color: var(--primary-color);
}

.footer .copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

