/* =======================================================
 * MOUNTAIN VIP TRANSFER - B2B PORTAL STYLESHEET
 * ======================================================= */

:root {
    --bg-primary: #0a0b0d;
    --bg-secondary: #12141c;
    --bg-tertiary: #1a1d29;
    --accent-gold: #d4af37;
    --accent-gold-hover: #f3e5ab;
    --text-primary: #ffffff;
    --text-secondary: #a0a5b5;
    --text-muted: #626875;
    --border-color: #242936;
    --border-color-hover: #3d455c;
    --success-color: #2ec4b6;
    --danger-color: #e71d36;
    --warning-color: #ff9f1c;
    --info-color: #00b4d8;
    --font-sans: 'Outfit', 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --gold-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* =======================================================
 * AUTHENTICATION PAGE (LOGIN)
 * ======================================================= */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--card-shadow);
    z-index: 1;
    position: relative;
    backdrop-filter: blur(10px);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 60px;
    width: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =======================================================
 * FORM CONTROLS
 * ======================================================= */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.form-control {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-select-custom {
    padding-left: 1rem;
}

/* =======================================================
 * BUTTONS
 * ======================================================= */
.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #b89025);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.5rem;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--gold-shadow);
}

.btn-gold:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* =======================================================
 * CORE DASHBOARD LAYOUT
 * ======================================================= */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar navigation */
.sidebar {
    width: 260px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 10;
}

.sidebar-logo {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.sidebar-logo img {
    height: 45px;
    width: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 8px;
    font-size: 0.95rem;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--bg-tertiary);
    color: var(--accent-gold);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Main content wrapper */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2.5rem;
    min-height: 100vh;
    background-color: var(--bg-primary);
}

/* Header bar inside pages */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.page-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agency-badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* =======================================================
 * WIDGETS & STATS CARDS
 * ======================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.stat-info h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.1rem;
}

.stat-info p {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-icon {
    display: none;
}

/* =======================================================
 * TABLES
 * ======================================================= */
.table-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.table-header-row {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header-row h2 {
    font-size: 1rem;
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.b2b-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.b2b-table th {
    background-color: transparent;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.b2b-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.b2b-table tr:last-child td {
    border-bottom: none;
}

.b2b-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending {
    background: rgba(255, 159, 28, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(255, 159, 28, 0.2);
}

.badge-confirmed {
    background: rgba(46, 196, 182, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(46, 196, 182, 0.2);
}

.badge-completed {
    background: rgba(0, 180, 216, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.badge-cancelled {
    background: rgba(231, 29, 54, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(231, 29, 54, 0.2);
}

/* =======================================================
 * CARD LAYOUTS & GENERAL UTILITIES
 * ======================================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.text-gold {
    color: var(--accent-gold) !important;
}

/* Loading Spinners & Indicators */
.loading-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.spinner {
    border: 3px solid rgba(255,255,255,0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border-left-color: var(--accent-gold);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert notifications */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-danger {
    background-color: rgba(231, 29, 54, 0.1);
    border: 1px solid rgba(231, 29, 54, 0.2);
    color: var(--danger-color);
}

.alert-success {
    background-color: rgba(46, 196, 182, 0.1);
    border: 1px solid rgba(46, 196, 182, 0.2);
    color: var(--success-color);
}

/* =======================================================
 * RESPONSIVENESS
 * ======================================================= */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 260px !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 9999 !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar.active {
        transform: translateX(0) !important;
    }

    .sidebar-logo {
        padding: 1.5rem !important;
    }
    
    .sidebar-logo img {
        height: 45px !important;
    }
    
    .sidebar-link span, .sidebar-footer span {
        display: inline !important;
    }
    
    .sidebar-link {
        justify-content: flex-start !important;
        padding: 0.8rem 1.2rem !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 1.2rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
    
    .content-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 1rem !important;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }

    /* Mobil Uyumlu Kart Görünümlü B2B Tabloları */
    .table-responsive {
        border: none;
        overflow-x: visible;
    }
    
    .b2b-table, .b2b-table thead, .b2b-table tbody, .b2b-table th, .b2b-table td, .b2b-table tr {
        display: block;
    }
    
    .b2b-table thead {
        display: none; /* Kolon başlıklarını gizle */
    }
    
    .b2b-table tr {
        background-color: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-bottom: 1.2rem;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .b2b-table td {
        border: none;
        padding: 0.6rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        font-size: 0.85rem;
    }
    
    .b2b-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        text-align: left;
        margin-right: 1rem;
    }
    
    /* Acente Adı kısmını başlık gibi gösterelim */
    .b2b-table td:first-child {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.8rem;
        margin-bottom: 0.5rem;
        display: block;
        text-align: left;
    }
    
    .b2b-table td:first-child::before {
        display: none;
    }
    
    /* Mobil Grid Yapısı */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}
