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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

.page {
    display: none;
}
.page.active {
    display: block;
}

/* ========== LOGIN ========== */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e94560, #c23152);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.7;
}

.login-form {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.login-form label i {
    margin-right: 6px;
    color: #e94560;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s;
    outline: none;
}

.login-form input:focus {
    border-color: #e94560;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.login-error {
    margin-top: 15px;
    padding: 10px;
    background: #ffebee;
    color: #c62828;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.login-footer {
    margin-top: 20px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 14px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.top-bar-left {
    font-size: 18px;
    font-weight: 700;
}

.top-bar-left i {
    margin-right: 8px;
    color: #e94560;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

#welcomeUser {
    font-size: 14px;
    opacity: 0.8;
}

.btn-back {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-back:hover {
    background: rgba(255,255,255,0.25);
}

/* ========== DASHBOARD ========== */
.dashboard-welcome {
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.dashboard-welcome h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dashboard-welcome p {
    font-size: 16px;
    opacity: 0.8;
}

.info-banner {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 16px 24px;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.info-banner i {
    color: #2196F3;
    font-size: 20px;
    margin-top: 2px;
}

.dashboard-cards {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}

.card-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-text p {
    font-size: 13px;
    color: #888;
}

.card-arrow {
    margin-left: auto;
    color: #ccc;
    font-size: 18px;
}

.card-logout {
    margin-top: 20px;
    border: 1px solid #ffcdd2;
    background: #fff5f5;
}

.footer {
    text-align: center;
    padding: 30px;
    color: #aaa;
    font-size: 13px;
}

/* ========== PAGE CONTAINER ========== */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* ========== SECTIONS ========== */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 28px 0 16px;
    color: #1a1a2e;
}

.section-title i {
    margin-right: 8px;
    color: #e94560;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.form-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ========== FORM ELEMENTS ========== */
.form-group {
    margin-bottom: 16px;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.form-group label.required::before {
    content: '';
}

.form-group label.required {
    color: #c62828;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 12px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #e94560;
}

.input-icon {
    position: relative;
}

.icon-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-weight: 600;
}

.input-icon input {
    padding-left: 32px;
}

.form-row {
    display: grid;
    gap: 16px;
}

.form-row.two-col {
    grid-template-columns: 1fr 1fr;
}

.form-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-row.four-col {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.form-row.two-col-small {
    grid-template-columns: 1fr auto;
    align-items: end;
}

/* ========== WARNINGS ========== */
.warning-banner {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 12px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #e65100;
}

.warning-banner i {
    margin-right: 8px;
}

/* ========== YOLCU ROWS ========== */
.yolcu-row {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #2196F3;
}

.btn-remove-yolcu {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-remove-yolcu:hover {
    background: #ffcdd2;
}

/* ========== BUTTONS ========== */
.btn-add {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-add:hover {
    background: #c23152;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.btn-search {
    background: #2196F3;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-search:hover {
    background: #1976D2;
}

/* ========== TABLES ========== */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 12px;
}

.table-header h3 {
    font-size: 16px;
}

.badge {
    background: #4CAF50;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    margin-left: 8px;
}

.table-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
}

.table-controls select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quick-search input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    margin-left: 6px;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

thead {
    background: #1a1a2e;
    color: #fff;
}

th {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

tbody tr:hover {
    background: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.btn-table {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-right: 4px;
    transition: opacity 0.3s;
}

.btn-table:hover {
    opacity: 0.8;
}

.btn-view {
    background: #e3f2fd;
    color: #1565C0;
}

.btn-pdf {
    background: #fce4ec;
    color: #c62828;
}

.btn-resend {
    background: #e8f5e9;
    color: #2e7d32;
}

.btn-edit {
    background: #fff3e0;
    color: #e65100;
}

.btn-delete {
    background: #ffebee;
    color: #c62828;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

.filter-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

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

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    color: #1a1a2e;
}

.modal-header h3 i {
    color: #e94560;
    margin-right: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.btn-save {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.btn-save:hover {
    background: #c23152;
}

/* ========== DETAY MODAL CONTENT ========== */
.detay-document {
    background: #fff;
    padding: 4px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.detay-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.detay-table th {
    background: #f0f0f0;
    color: #000;
    padding: 7px 10px;
    text-align: left;
    font-size: 12px;
    font-weight: bold;
    width: 45%;
    border: 1px solid #bbb;
}

.detay-table td {
    padding: 7px 10px;
    font-size: 12px;
    border: 1px solid #bbb;
    color: #000;
}

.detay-section-title {
    background: #ddd;
    color: #000;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin: 12px 0 0;
    border: 1px solid #bbb;
}

.detay-yolcu-table {
    width: 100%;
    border-collapse: collapse;
}

.detay-yolcu-table thead {
    background: #ddd;
}

.detay-yolcu-table th {
    padding: 8px 10px;
    font-size: 11px;
    color: #000;
    font-weight: bold;
    border: 1px solid #bbb;
    text-align: center;
}

.detay-yolcu-table td {
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid #ccc;
    color: #000;
}

.detay-yolcu-table tbody tr:hover {
    background: #f5f5f5;
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a1a2e;
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 2000;
    animation: fadeInUp 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .form-row.two-col,
    .form-row.three-col,
    .form-row.four-col {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome h1 {
        font-size: 24px;
    }

    .table-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-bar {
        padding: 12px 16px;
        font-size: 14px;
    }

    .card {
        padding: 16px 20px;
    }
}
