/* Modern Otobüs TV Styles */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body {
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease-in-out;
    border-width: 1px;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Modern Cards */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease-in-out;
    background: var(--white);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Modern Header */
.modern-header {
    background: var(--white);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--gray-200);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
    transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.navbar-nav .nav-link.active {
    background: var(--primary-color);
    color: var(--white) !important;
}

/* Modern Forms */
.form-control, .form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease-in-out;
    background: var(--white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(79 70 229 / 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Modern Tables */
.table {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-700);
    padding: 1rem 1.5rem;
}

.table tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: var(--gray-50);
}

/* Modern Badges */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius);
}

/* Modern Alerts */
.alert {
    border-radius: var(--border-radius-lg);
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgb(16 185 129 / 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgb(239 68 68 / 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: rgb(245 158 11 / 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: rgb(6 182 212 / 0.1);
    color: var(--secondary-color);
    border-left: 4px solid var(--secondary-color);
}

/* Modern Dropdown */
.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    background: var(--white);
}

.dropdown-item {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

/* Modern Stats Cards */
.stats-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stats-label {
    font-weight: 500;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

/* Modern Search */
.search-box {
    position: relative;
}

.search-input {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 2rem;
    padding: 0.75rem 1rem 0.75rem 3rem;
    transition: all 0.2s ease-in-out;
    width: 100%;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(79 70 229 / 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4rem 0;
    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 1000 100" fill="white" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
    background-position: bottom;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
}

/* Trip Cards */
.trip-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    overflow: hidden;
}

.trip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.company-logo {
    width: 60px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.price-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

/* Loading States */
.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1f2937;
        --gray-50: #111827;
        --gray-100: #1f2937;
        --gray-200: #374151;
        --gray-900: #f9fafb;
    }
}

/* Admin Panel Modern Styles */
.admin-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    border-right: 1px solid var(--gray-200);
}

.admin-sidebar .nav-link {
    color: var(--gray-300);
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-700);
    transition: all 0.2s ease;
    font-weight: 500;
}

.admin-sidebar .nav-link:hover {
    background: var(--gray-700);
    color: var(--white);
    padding-left: 2rem;
}

.admin-sidebar .nav-link.active {
    background: var(--primary-color);
    color: var(--white);
    border-left: 4px solid var(--white);
}

.admin-sidebar .nav-link i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.admin-header {
    background: var(--white);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.admin-content {
    padding: 2rem;
    background: var(--gray-50);
    min-height: calc(100vh - 4rem);
}

/* Modern Data Tables */
.data-table {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.data-table .table {
    margin-bottom: 0;
}

.data-table thead {
    background: var(--gray-100);
}

.data-table thead th {
    font-weight: 600;
    color: var(--gray-700);
    border: none;
    padding: 1.25rem;
}

.data-table tbody td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Action Buttons */
.btn-group-sm .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius);
}

.btn-outline-primary, .btn-outline-warning, .btn-outline-danger, .btn-outline-success {
    border-width: 1px;
}

/* Status Indicators */
.status-active {
    background: var(--success-color);
    color: var(--white);
}

.status-inactive {
    background: var(--gray-400);
    color: var(--white);
}

.status-pending {
    background: var(--warning-color);
    color: var(--white);
}

.status-resolved {
    background: var(--success-color);
    color: var(--white);
}

.status-rejected {
    background: var(--danger-color);
    color: var(--white);
}
