/* public/style.css (Tüm Stiller Dahil) */

:root {
    --bg-color: #f8faff;
    --main-color: #ffffff;
    --primary-color: #3f51b5;
    --hover-color: #5c6bc0;
    --taken-color: #455a64;
    --text-dark: #263238;
    --text-light: #78909c;
    --border-color: #eceff1;
    --success-color: #28a745;
    --error-color: #dc3545;
    --brand-gradient: linear-gradient(90deg, #4a72ff 0%, #3f51b5 100%);
    --shadow-light: 0 4px 10px rgba(0,0,0,0.05);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-heavy: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 12px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding-top: 80px;
    padding-bottom: 100px;
    color: var(--text-dark);
    line-height: 1.6;
}
.hidden { display: none !important; }

/* --- Giriş/Kayıt --- */
.auth-body { padding-top: 0; display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, var(--bg-color) 0%, #e0e7ff 100%); }
.auth-container { width: 100%; max-width: 420px; padding: 20px; }
.auth-form { background: var(--main-color); padding: 40px; border-radius: 16px; box-shadow: var(--shadow-medium); }
.auth-form h2 { text-align: center; font-size: 28px; color: var(--text-dark); margin-top: 0; margin-bottom: 10px; }
.auth-form p { text-align: center; color: var(--text-light); margin-bottom: 30px; }
.auth-button { width: 100%; padding: 14px; font-size: 16px; margin-top: 10px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-light); }
.auth-switch a { color: var(--primary-color); font-weight: 500; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-error, .auth-success { padding: 12px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 500; text-align: center; }
.auth-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.auth-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* --- Navbar --- */
.navbar { width: 100%; background-color: var(--main-color); box-shadow: var(--shadow-light); position: fixed; top: 0; left: 0; z-index: 1000; }
.nav-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand-logo { font-size: 24px; font-weight: 700; color: var(--primary-color); text-decoration: none; letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--text-light); text-decoration: none; font-weight: 500; transition: color 0.2s ease, transform 0.2s ease; position: relative; padding: 5px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); transform: translateY(-2px); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 100%; height: 2px; background-color: var(--primary-color); border-radius: 1px; }
.user-menu { display: flex; align-items: center; gap: 15px; }
.navbar-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-color); }
.navbar-username { font-weight: 500; color: var(--text-dark); font-size: 15px; }
.nav-logout-btn { color: #d9534f !important; font-size: 18px; padding: 5px; margin-left: 5px; background: none; border: none; cursor: pointer; display: flex; align-items: center; }
.nav-logout-btn:hover { color: #c9302c !important; transform: none; }

/* --- Ana İçerik --- */
.main-content { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.trip-info { text-align: center; margin-bottom: 40px; background-color: var(--main-color); padding: 30px; border-radius: 16px; box-shadow: var(--shadow-light); }
.trip-info .route { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; font-weight: 500; color: var(--text-light); margin-bottom: 8px; }
.trip-info .route i { color: var(--primary-color); font-size: 18px; }
.trip-info h1 { font-size: 28px; font-weight: 700; color: var(--text-dark); margin: 0; line-height: 1.3; }

/* --- Koltuk Seçme --- */
.seat-selection-area { background: var(--main-color); padding: 30px; border-radius: 24px; box-shadow: var(--shadow-medium); max-width: 600px; margin: 40px auto; }
.bus { background-color: #f7faff; border: 1px solid var(--border-color); border-radius: 20px 20px 12px 12px; padding: 30px 20px; position: relative; perspective: 800px; box-shadow: inset 0 0 15px rgba(0,0,0,0.05); }
.bus-front { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; border-bottom: 1px dashed #e0e0e0; padding-bottom: 15px; }
.driver-section { display: flex; flex-direction: column; align-items: center; font-size: 14px; color: var(--text-light); font-weight: 500; }
.driver-section i { font-size: 28px; color: var(--text-dark); margin-bottom: 5px; }
.front-passenger-seat { position: relative; top: 5px; right: 10px; }
.seating-area { display: flex; flex-direction: column; gap: 20px; }
.seat-row { display: flex; justify-content: center; align-items: center; gap: 15px; }
.seat-row.back-row { gap: 8px; padding: 10px 0; background-color: #e3f2fd; border-radius: 8px; }
.aisle { width: 40px; }
.seat { width: 55px; height: 60px; background-color: var(--main-color); border: 1px solid var(--border-color); border-radius: 8px; display: flex; justify-content: center; align-items: center; font-size: 14px; font-weight: 600; color: var(--text-dark); position: relative; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); transform-style: preserve-3d; box-shadow: 0 2px 5px rgba(0,0,0,0.08); }
.seat:before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 60%; background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(0,0,0,0.02)); border-radius: 8px 8px 0 0; transform: translateZ(2px); z-index: 1; }
.seat span { position: relative; z-index: 2; }
.seat.available { background: linear-gradient(145deg, #f0f4f8, #e2e6eb); border-color: #cdd3da; cursor: pointer; }
.seat.available:hover { background: var(--hover-color); border-color: var(--primary-color); color: white; transform: translateY(-8px) rotateX(5deg) scale(1.05); box-shadow: 0 15px 30px rgba(63, 81, 181, 0.4); }
.seat.taken { background: var(--taken-color); border-color: var(--taken-color); color: #fff; cursor: not-allowed; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.seat.taken:before { background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(0,0,0,0.15)); }
.legend { display: flex; justify-content: center; gap: 30px; margin-top: 30px; padding-top: 20px; border-top: 1px dashed #e0e0e0; }
.legend-item { display: flex; align-items: center; font-size: 14px; color: var(--text-light); }
.seat-example { width: 24px; height: 24px; border-radius: 8px; margin-right: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.seat-example.available { background: #f0f4f8; border: 1px solid #cdd3da; }
.seat-example.taken { background: var(--taken-color); }

/* --- Bilgi Popover --- */
.info-popover { position: absolute; background-color: white; padding: 20px; border-radius: 12px; box-shadow: var(--shadow-heavy); width: 280px; z-index: 3000; opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.95); transition: all 0.25s ease-out; border: 1px solid var(--border-color); }
.info-popover.visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.info-popover h3 { margin: 0 0 15px 0; font-size: 18px; font-weight: 600; color: var(--text-dark); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.info-popover ul { list-style: none; margin: 0; padding: 0; }
.info-popover li { display: flex; align-items: center; font-size: 15px; color: var(--text-light); margin-bottom: 12px; }
.info-popover li:last-child { margin-bottom: 0; }
.info-popover li i { color: var(--primary-color); font-size: 16px; width: 30px; text-align: center; margin-right: 5px; }

/* --- Modal Stilleri --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay:not(.hidden) { opacity: 1; visibility: visible; }
.modal-content { background-color: white; padding: 30px 40px; border-radius: 16px; box-shadow: var(--shadow-heavy); width: 100%; max-width: 450px; position: relative; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay:not(.hidden) .modal-content { transform: scale(1); }
.close-button { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 28px; color: #aaa; cursor: pointer; transition: color 0.2s; }
.close-button:hover { color: #333; }
.modal-content h2 { margin: 0 0 10px; color: var(--text-dark); text-align: center; }
.modal-content p { margin: 0 0 25px; color: var(--text-light); text-align: center; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #555; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 16px; box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.2); }
.form-actions { display: flex; justify-content: flex-end; gap: 15px; margin-top: 30px; }
.modal-button { padding: 12px 25px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 0.2s, transform 0.2s; }
.modal-button:hover { transform: translateY(-2px); }
.modal-button.primary { background-color: var(--primary-color); color: white; }
.modal-button.primary:hover { background-color: var(--hover-color); }
.modal-button.secondary { background-color: #f1f1f1; color: #555; }
.modal-button.secondary:hover { background-color: #e0e0e0; }

/* --- Sayımlar Listeleme --- */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.page-header h1 { font-size: 36px; font-weight: 700; color: var(--text-dark); margin: 0; }
.button-primary { background-image: var(--brand-gradient); color: white; padding: 14px 24px; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 10px; box-shadow: 0 5px 15px rgba(63, 81, 181, 0.3); }
.button-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(63, 81, 181, 0.4); }
.sayim-list-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.sayim-card { background-color: var(--main-color); border-radius: 16px; box-shadow: var(--shadow-card); transition: all 0.3s ease; border: 1px solid var(--border-color); overflow: hidden; position: relative; display: flex; flex-direction: column; }
.sayim-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }
.sayim-card:before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background-image: var(--brand-gradient); transition: height 0.3s ease; }
.sayim-card:hover:before { height: 8px; }
.card-content { padding: 25px 30px; display: flex; flex-direction: column; flex-grow: 1; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 15px; margin-bottom: 20px; }
.card-header h3 { margin: 0; font-size: 22px; font-weight: 600; color: var(--text-dark); }
.sayim-ucret { background-color: var(--bg-color); color: var(--primary-color); padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 700; border: 1px solid var(--border-color); }
.card-body { flex-grow: 1; }
.card-body p { margin: 0 0 12px; color: var(--text-light); display: flex; align-items: center; gap: 12px; font-size: 16px; }
.card-body p i { color: var(--primary-color); width: 20px; text-align: center; }
.card-footer { padding-top: 20px; margin-top: auto; border-top: 1px solid var(--border-color); }
.kontenjan-info { margin-bottom: 20px; }
.card-actions { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.progress-bar-container { display: flex; align-items: center; gap: 15px; margin-bottom: 8px; }
.progress-bar { flex-grow: 1; height: 10px; background-color: #e9ecef; border-radius: 5px; overflow: hidden; }
.progress { height: 100%; background-image: linear-gradient(90deg, #6d8fff 0%, #4a72ff 100%); border-radius: 5px; transition: width 0.5s ease; }
.progress-percentage { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.kontenjan-text { display: flex; gap: 20px; font-size: 13px; color: var(--text-light); }
.kontenjan-text strong { color: var(--text-dark); font-weight: 600; }
.empty-message { text-align: center; padding: 60px; color: var(--text-light); font-size: 18px; background-color: var(--main-color); border-radius: 16px; border: 2px dashed var(--border-color); }
.form-group-inline { display: flex; gap: 20px; }
.form-group-inline .form-group { flex: 1; }
.form-group-checkbox { display: flex; align-items: center; margin-top: 20px; padding: 10px; background-color: #f8f9fa; border-radius: 8px; }
.form-group-checkbox input { margin-right: 12px; width: 18px; height: 18px; accent-color: var(--primary-color); }
.form-group-checkbox label { font-weight: 500; color: var(--text-dark); margin-bottom: 0; }
.button-register { background-color: var(--primary-color); color: white; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s ease; }
.button-register:hover { background-color: var(--hover-color); transform: translateY(-2px); }
.sehir-disi-tag { display: inline-block; background-color: #fff3cd; color: #856404; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; margin-left: 10px; vertical-align: middle; }
.button-view-attendees { background-color: #f1f3f5; color: var(--text-dark); padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1px solid #dee2e6; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; }
.button-view-attendees:hover { background-color: #e9ecef; transform: translateY(-2px); border-color: #ced4da; }
.button-view-attendees i { color: var(--text-light); }
.attendees-list { margin-top: 20px; max-height: 400px; overflow-y: auto; padding-right: 10px; }
.attendee-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.attendee-item:last-child { border-bottom: none; }
.attendee-initials { width: 40px; height: 40px; border-radius: 50%; background-image: var(--brand-gradient); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; margin-right: 15px; flex-shrink: 0; }
.attendee-name { font-size: 16px; color: var(--text-dark); font-weight: 500; }
.button-register.disabled { background-color: #ced4da; color: #6c757d; cursor: not-allowed; box-shadow: none; transform: none; }
.button-register.disabled:hover { background-color: #ced4da; transform: none; }

/* --- Profil Sayfası --- */
.profile-page-container { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: flex-start; }
.profile-sidebar { background-color: var(--main-color); padding: 30px; border-radius: 16px; box-shadow: var(--shadow-medium); text-align: center; position: sticky; top: 100px; }
.profile-picture-section { margin-bottom: 25px; position: relative; }
#profile-picture-preview { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--border-color); margin-bottom: 15px; background-color: #eee; }
.upload-button { display: inline-block; background-color: var(--bg-color); color: var(--text-dark); padding: 8px 15px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid var(--border-color); transition: all 0.2s ease; }
.upload-button:hover { background-color: #e9ecef; }
.upload-button i { margin-right: 5px; }
#profile-picture-upload { display: none; }
.save-picture-btn { display: block; margin: 15px auto 0; padding: 10px 20px; font-size: 14px; }
#profile-sidebar-name { font-size: 22px; font-weight: 600; margin: 0 0 5px; color: var(--text-dark); }
#profile-sidebar-email { font-size: 15px; color: var(--text-light); margin: 0; word-break: break-all; }
.profile-forms-section { display: flex; flex-direction: column; gap: 30px; }
.profile-form-card { background-color: var(--main-color); padding: 35px; border-radius: 16px; box-shadow: var(--shadow-medium); }
.profile-form-card h2 { font-size: 24px; margin-top: 0; margin-bottom: 30px; color: var(--text-dark); display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.profile-form-card h2 i { color: var(--primary-color); }
.form-group.icon-input { position: relative; }
.form-group.icon-input label i { margin-right: 8px; color: var(--text-light); width: 15px; text-align: center; }
.profile-save-btn { margin-top: 15px; padding: 14px 25px; }
#profile-message, #password-message { margin-bottom: 20px; }
@media (max-width: 900px) { .profile-page-container { grid-template-columns: 1fr; } .profile-sidebar { position: static; margin-bottom: 30px; } }

/* --- Toast Bildirimi --- */
.toast-notification { position: fixed; bottom: 25px; right: 25px; background-color: #ffffff; border-radius: 12px; box-shadow: var(--shadow-heavy); display: flex; align-items: center; padding: 18px 25px; border-left: 6px solid var(--success-color); z-index: 5000; width: 100%; max-width: 350px; transform: translateX(120%); opacity: 0; transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); overflow: hidden; }
.toast-notification.show { transform: translateX(0%); opacity: 1; }
.toast-notification i { font-size: 24px; color: var(--success-color); margin-right: 15px; }
.toast-message strong { font-size: 16px; font-weight: 600; color: var(--text-dark); display: block; margin-bottom: 3px; }
.toast-message span { font-size: 14px; color: var(--text-light); }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 4px; width: 100%; background-color: var(--success-color); animation: progress-countdown 4s linear forwards; }
@keyframes progress-countdown { from { width: 100%; } to { width: 0%; } }
.toast-notification.error { border-left-color: var(--error-color); }
.toast-notification.error i { color: var(--error-color); }
.toast-notification.error .toast-progress { background-color: var(--error-color); }

/* --- Chat Widget Stilleri (chat-style.css'den buraya taşındı) --- */
#chat-widget-container { position: fixed; bottom: 20px; right: 20px; z-index: 1050; }
#chat-toggle-button { background-color: var(--primary-color); color: white; border: none; border-radius: 50%; width: 60px; height: 60px; font-size: 28px; cursor: pointer; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); display: flex; justify-content: center; align-items: center; transition: all 0.3s ease; position: relative; }
#chat-toggle-button:hover { background-color: var(--hover-color); transform: scale(1.1); }
#chat-unread-count { position: absolute; top: -5px; right: -5px; background-color: var(--error-color); color: white; font-size: 11px; font-weight: bold; border-radius: 50%; width: 20px; height: 20px; display: flex; justify-content: center; align-items: center; line-height: 1; }
#chat-window { position: absolute; bottom: 80px; right: 0; width: 350px; height: 450px; background-color: white; border-radius: 12px; box-shadow: var(--shadow-heavy); display: flex; flex-direction: column; overflow: hidden; transform: scale(0.9); opacity: 0; transform-origin: bottom right; transition: all 0.3s ease; }
#chat-window:not(.hidden) { transform: scale(1); opacity: 1; }
#chat-header { background-image: var(--brand-gradient); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
#chat-title { font-weight: 600; font-size: 18px; }
#chat-close-button, #chat-back-button { background: none; border: none; color: white; font-size: 24px; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; padding: 0 5px; }
#chat-close-button:hover, #chat-back-button:hover { opacity: 1; }
#chat-back-button { font-size: 20px; margin-right: 10px; }
#chat-body { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
#chat-user-list { overflow-y: auto; padding: 5px 0; }
.chat-user-item { display: flex; align-items: center; padding: 12px 20px; cursor: pointer; transition: background-color 0.2s; border-bottom: 1px solid var(--border-color); }
.chat-user-item:last-child { border-bottom: none; }
.chat-user-item:hover { background-color: #f7faff; }
.chat-user-avatar { width: 45px; height: 45px; border-radius: 50%; margin-right: 15px; flex-shrink: 0; overflow: hidden; background-color: #eee; }
.chat-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-user-details { overflow: hidden; flex-grow: 1; }
.chat-user-name { font-weight: 600; font-size: 15px; color: var(--text-dark); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.chat-user-last-message { font-size: 13px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.chat-user-last-message .no-message { font-style: italic; }
#chat-conversation { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
#chat-messages { flex-grow: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.message { padding: 8px 12px; border-radius: 18px; max-width: 75%; font-size: 14px; line-height: 1.4; word-wrap: break-word; }
.message.sent { background-color: var(--primary-color); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.message.received { background-color: #f1f0f0; color: var(--text-dark); align-self: flex-start; border-bottom-left-radius: 4px; }
.message-time { font-size: 10px; color: var(--text-light); margin-top: 3px; text-align: right; }
.message.received .message-time { text-align: left; }
#chat-input-area { display: flex; padding: 10px 15px; border-top: 1px solid var(--border-color); background-color: #f9f9f9; }
#chat-message-input { flex-grow: 1; border: 1px solid var(--border-color); border-radius: 20px; padding: 10px 15px; font-family: 'Inter', sans-serif; font-size: 14px; resize: none; margin-right: 10px; max-height: 80px; overflow-y: auto; }
#chat-message-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2); }
#chat-send-button { background-color: var(--primary-color); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 18px; cursor: pointer; flex-shrink: 0; transition: background-color 0.2s; display: flex; align-items: center; justify-content: center; }
#chat-send-button:hover { background-color: var(--hover-color); }
#chat-window .hidden, #chat-widget-container .hidden { display: none !important; }


/* --- SAYIM GEÇMİŞİ SAYFASI STİLLERİ --- */

/* Aktif Navbar Linki */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
}

.history-list-container {
    max-width: 900px;
    margin: 0 auto;
}
#history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.history-card {
    display: flex;
    align-items: center;
    background-color: var(--main-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}
.history-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.history-icon-section {
    font-size: 24px;
    margin-right: 20px;
    padding: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}
.history-details {
    flex-grow: 1;
}
.history-details strong {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
}
.history-details span {
    font-size: 14px;
    color: var(--text-light);
}
.history-status {
    flex-shrink: 0;
    margin-left: 20px;
}

/* Durum Rozetleri */
.status-badge { 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 700; 
    text-transform: uppercase; 
}
.status-yaklasan { background-color: #e7f5ff; color: #1c7ed6; }
.status-aktif { background-color: #d3f9d8; color: #2f9e44; }
.status-tamamlandi { background-color: #e9ecef; color: #495057; }
.status-iptal { background-color: #ffe3e3; color: #fa5252; }

/* İkon Renkleri */
.history-icon-section.status-yaklasan { background-color: #e7f5ff; color: #1c7ed6; }
.history-icon-section.status-aktif { background-color: #d3f9d8; color: #2f9e44; }
.history-icon-section.status-tamamlandi { background-color: #e9ecef; color: #495057; }
.history-icon-section.status-iptal { background-color: #ffe3e3; color: #fa5252; }

/* Mobil Uyum */
@media (max-width: 600px) {
    .history-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .history-icon-section {
        margin-right: 0;
        margin-bottom: 5px;
    }
    .history-status {
        margin-left: 0;
        margin-top: 10px;
    }
}