/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
    overflow-x: hidden; /* Yatay taşmayı engelle */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo a {
    color: white;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    padding: 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.nav a:hover {
    opacity: 0.8;
    background: rgba(255,255,255,0.1);
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 2rem 0;
}

.reservation-section {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.reservation-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #333;
    padding: 0 1rem;
}

/* Forms */
.reservation-form, .query-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 44px; /* Touch target */
    white-space: nowrap;
    width: auto;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-height: 36px;
}

.btn-block {
    width: 100%;
}

/* Query Section */
.query-section {
    background: #f8fafc;
    padding: 2rem 0;
}

.query-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    padding: 0 1rem;
}

/* Features */
.features {
    padding: 2rem 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
}

.feature {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #a0aec0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* Search Results */
.search-results {
    padding: 1rem;
}

.search-results h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.search-info {
    background: #e6fffa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #38b2ac;
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 1rem;
}

.no-results i {
    font-size: 3rem;
    color: #f56565;
    margin-bottom: 1rem;
}

.trips-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

.trip-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.trip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.trip-info {
    flex: 1;
}

.trip-route {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.departure, .arrival {
    text-align: center;
}

.departure strong, .arrival strong {
    font-size: 1.2rem;
    color: #667eea;
}

.route-line {
    color: #667eea;
    font-size: 1.2rem;
}

.trip-details p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.trip-price {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 1rem;
}

.price small {
    font-size: 0.8rem;
    color: #666;
    display: block;
}

/* Reservation Page */
.reservation-page {
    padding: 1rem;
}

.trip-summary {
    margin-bottom: 2rem;
}

.trip-info-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.seat-selection {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.seat-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.seat-demo {
    width: 25px;
    height: 25px;
    border-radius: 6px;
    border: 2px solid #ddd;
    flex-shrink: 0;
}

.seat-demo.available {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.seat-demo.female {
    background: #fbb6ce;
    border-color: #ed64a6;
}

.seat-demo.male {
    background: #90cdf4;
    border-color: #4299e1;
}

.seat-demo.selected {
    background: #48bb78;
    border-color: #38a169;
}

.vehicle-layout {
    max-width: 350px;
    margin: 0 auto 2rem;
    background: #f7fafc;
    border-radius: 20px;
    padding: 1rem;
    border: 3px solid #e2e8f0;
    overflow-x: auto;
}

.seats-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 280px;
}

.seat-row {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.seat {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.seat.available {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.seat.available:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.seat.female {
    background: #fbb6ce;
    border-color: #ed64a6;
    cursor: not-allowed;
}

.seat.male {
    background: #90cdf4;
    border-color: #4299e1;
    cursor: not-allowed;
}

.seat.selected {
    background: #48bb78;
    border-color: #38a169;
    color: white;
    transform: scale(1.1);
}

.seat.driver-side {
    background: rgba(255, 193, 7, 0.3);
    border-color: #ffc107;
    color: #856404;
}

.seat.driver-side:hover {
    background: rgba(255, 193, 7, 0.4);
    transform: scale(1.1);
}

.seat-space {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

.driver-seat-with-text {
    width: 35px;
    height: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2px;
    flex-shrink: 0;
}

.driver-seat-icon {
    width: 25px;
    height: 25px;
    border-radius: 6px;
    border: 2px solid #ffc107;
    background: rgba(255, 193, 7, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #856404;
    font-size: 0.8rem;
}

.driver-text {
    font-size: 0.5rem;
    font-weight: bold;
    color: #856404;
    margin-top: 2px;
    text-align: center;
}

.selection-summary {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 1rem;
}

.selected-seats h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.selected-seat-tag {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    margin: 0.2rem;
    font-size: 0.8rem;
}

.no-selection {
    color: #999;
    font-style: italic;
}

.total-price {
    margin: 1rem 0;
    font-size: 1.1rem;
}

/* Passenger Info */
.passenger-info-page {
    padding: 1rem;
}

.progress-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.step {
    padding: 0.6rem 1rem;
    border-radius: 25px;
    background: #e2e8f0;
    color: #666;
    font-weight: 600;
    position: relative;
    font-size: 0.9rem;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.step.completed {
    background: #48bb78;
    color: white;
}

.step.active {
    background: #667eea;
    color: white;
}

.passenger-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.passenger-card h3 {
    margin-bottom: 1rem;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    font-size: 1.1rem;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

/* Success Page */
.success-page {
    padding: 1rem;
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    color: #48bb78;
    margin-bottom: 2rem;
}

.success-page h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.success-message {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.reservation-details {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: left;
}

.reservation-code {
    text-align: center;
    margin-bottom: 2rem;
}

.reservation-code h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.code {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    letter-spacing: 1px;
    word-break: break-all;
}

.trip-details, .passenger-details {
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.label {
    font-weight: 600;
    color: #555;
    min-width: 100px;
}

.value {
    color: #333;
    text-align: right;
    flex: 1;
}

.passenger-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.passenger-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.passenger-price {
    font-weight: bold;
    color: #667eea;
}

.seat {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.total-amount {
    text-align: center;
    font-size: 1.2rem;
    color: #667eea;
    border-top: 2px solid #e2e8f0;
    padding-top: 1rem;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 1rem;
}

.travel-message {
    color: #48bb78;
    font-size: 1rem;
    margin-top: 2rem;
}

.travel-message i {
    margin-right: 0.5rem;
}

/* Query Page */
.query-page {
    padding: 1rem;
}

.reservation-result {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.reservation-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.reservation-header h3 {
    font-size: 1.3rem;
}

.status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    width: fit-content;
}

.status.active {
    background: #c6f6d5;
    color: #22543d;
}

.status.cancelled {
    background: #fed7d7;
    color: #742a2a;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.passengers-list {
    margin-bottom: 1rem;
}

.passenger-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.passenger-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.seat-badge {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.total-section {
    border-top: 2px solid #e2e8f0;
    padding-top: 1rem;
    text-align: center;
}

/* Admin Styles */
.admin-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.login-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
}

/* Admin Panel */
.admin-panel {
    background: #f8fafc;
}

.admin-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-sidebar {
    width: 100%;
    background: #2d3748;
    color: white;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    order: 2;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #4a5568;
    text-align: center;
}

.sidebar-header h3 {
    font-size: 1.2rem;
}

.sidebar-nav {
    display: flex;
    overflow-x: auto;
    padding: 0.5rem;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.9rem;
    min-width: 120px;
    justify-content: center;
}

.nav-item:hover {
    background: #4a5568;
    color: white;
}

.nav-item.active {
    background: #667eea;
    color: white;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #4a5568;
    text-align: center;
}

.admin-content {
    flex: 1;
    padding: 0;
    order: 1;
}

.admin-header {
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.admin-header h1 {
    color: #333;
    font-size: 1.5rem;
}

.admin-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon.blue { background: #4299e1; }
.stat-icon.green { background: #48bb78; }
.stat-icon.orange { background: #ed8936; }
.stat-icon.purple { background: #9f7aea; }

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-content p {
    color: #666;
    font-size: 0.9rem;
}

.dashboard-content {
    padding: 1rem;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.card-header h3 {
    color: #333;
    font-size: 1.2rem;
}

.card-body {
    padding: 1rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.table th,
.table td {
    padding: 0.6rem 0.4rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    position: sticky;
    top: 0;
    z-index: 10;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem 1rem;
}

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

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-info {
    background: #bee3f8;
    color: #2a4365;
    border: 1px solid #90cdf4;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-content.large {
    max-width: 800px;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0.5rem;
    line-height: 1;
}

.close:hover {
    color: #333;
}

/* Payment Styles */
.payment-page, .refund-page, .cancel-page {
    max-width: 100%;
    margin: 1rem;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.payment-page h2, .refund-page h2, .cancel-page h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    font-size: 1.4rem;
}

.payment-info, .refund-info {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.payment-info h3, .refund-info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.paytr-iframe-container {
    margin: 1rem 0;
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.paytr-iframe-container iframe {
    width: 100% !important;
    min-height: 400px;
    border: none;
    border-radius: 4px;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .form-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .trip-card {
        flex-direction: row;
        align-items: center;
        padding: 1.5rem;
    }
    
    .trip-route {
        flex-direction: row;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-container {
        flex-direction: row;
    }
    
    .admin-sidebar {
        width: 250px;
        order: 1;
    }
    
    .sidebar-nav {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }
    
    .nav-item {
        border-radius: 0;
        border-left: 3px solid transparent;
        justify-content: flex-start;
        min-width: auto;
    }
    
    .nav-item.active {
        border-left-color: #667eea;
        background: #4a5568;
    }
    
    .admin-content {
        order: 2;
    }
    
    .admin-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 1.5rem 2rem;
    }
    
    .admin-header h1 {
        font-size: 1.8rem;
    }
    
    .admin-user {
        flex-direction: row;
        gap: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
    }
    
    .dashboard-content {
        padding: 0 2rem 2rem;
    }
    
    .card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 1.5rem 2rem;
    }
    
    .card-body {
        padding: 1.5rem 2rem;
    }
    
    .form-actions {
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
    }
    
    .actions {
        flex-direction: row;
        justify-content: center;
        margin: 2rem 0;
    }
    
    .reservation-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-item {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .passenger-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .passenger-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .detail-row {
        flex-wrap: nowrap;
    }
    
    .seat-legend {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .progress-bar {
        gap: 2rem;
    }
    
    .step {
        flex: none;
        min-width: auto;
    }
    
    .payment-page, .refund-page, .cancel-page {
        max-width: 700px;
        margin: 2rem auto;
        padding: 2rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .seat-legend {
        justify-content: center;
        gap: 2rem;
    }
    
    .legend-item {
        font-size: 1rem;
    }
    
    .seat {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .seat-space {
        width: 40px;
        height: 40px;
    }
    
    .driver-seat-with-text {
        width: 40px;
        height: 40px;
    }
    
    .driver-seat-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .vehicle-layout {
        max-width: 400px;
    }
    
    .seats-container {
        min-width: 320px;
    }
    
    .trip-route {
        align-items: center;
    }
    
    .departure strong, .arrival strong {
        font-size: 1.4rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .hero {
        padding: 4rem 0;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .reservation-section {
        padding: 4rem 0;
    }
    
    .query-section {
        padding: 3rem 0;
    }
    
    .features {
        padding: 4rem 0;
    }
    
    .footer {
        padding: 3rem 0 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .actions,
    .admin-sidebar,
    .admin-header {
        display: none !important;
    }
    
    .main {
        margin: 0;
        padding: 0;
    }
    
    .reservation-result {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .admin-content {
        margin: 0;
        padding: 0;
    }
}

/* Touch Improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        padding: 1rem 1.5rem;
    }
    
    .seat {
        width: 40px;
        height: 40px;
    }
    
    .nav-item {
        min-height: 48px;
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 48px;
        padding: 1rem;
        font-size: 16px; /* iOS zoom önleme */
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .seat {
        border-width: 3px;
    }
    
    .form-group input,
    .form-group select {
        border-width: 3px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Dark mode stilleri isteğe bağlı olarak eklenebilir */
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.m-0 { margin: 0; }
.p-0 { padding: 0; }

.mt-1 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.ml-1 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.5rem; }

.pt-1 { padding-top: 0.5rem; }
.pb-1 { padding-bottom: 0.5rem; }
.pl-1 { padding-left: 0.5rem; }
.pr-1 { padding-right: 0.5rem; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Focus Styles */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.btn:focus {
    outline-offset: 4px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error States */
.error {
    color: #dc3545;
    border-color: #dc3545 !important;
}

.success {
    color: #28a745;
    border-color: #28a745 !important;
}

/* Custom Checkbox and Radio */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Form Validation */
.form-group input:invalid {
    border-color: #dc3545;
}

.form-group input:valid {
    border-color: #28a745;
}

/* Sticky Elements */
.sticky {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Safe Area for iOS */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .admin-sidebar {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}