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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #0891b2;
    --light: #f1f5f9;
    --dark: #0f172a;
    --gray: #94a3b8;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8fafc;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Login & Register */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 460px;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.auth-card h1 {
    font-size: 24px;
    text-align: center;
    color: var(--dark);
    margin-bottom: 8px;
}

.auth-card p {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 28px;
    font-size: 14px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo svg {
    width: 56px;
    height: 56px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

select.form-control {
    appearance: auto;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #b45309; }

.btn-info { background: var(--info); color: #fff; }
.btn-info:hover { background: #0e7490; }

.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #475569; }

.btn-outline-secondary {
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
}
.btn-outline-secondary:hover {
    background: var(--secondary);
    color: #fff;
}

.btn-refresh {
    background: #eab308;
    color: #fff;
    border: 1px solid #ca8a04;
}
.btn-refresh:hover {
    background: #ca8a04;
    color: #fff;
}

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--secondary);
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
}

.sidebar {
    width: 80vw;
    max-width: 260px;
    min-width: 200px;
    background: var(--dark);
    color: #fff;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.sidebar-header small {
    color: var(--gray);
    font-size: 12px;
}

.sidebar-header .sidebar-logo {
    max-height: 40px;
    width: auto;
    display: block;
    margin-bottom: 6px;
}

.sidebar-nav {
    padding: 12px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #cbd5e1;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
}

.sidebar-nav a.active {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border-right: 3px solid var(--primary);
}

.sidebar-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 8px 20px;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 0;
    max-width: 100%;
    min-width: 0;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.page-title {
    font-size: 18px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.content-area {
    padding: 28px;
    max-width: 100%;
    min-width: 0;
}

/* Cards */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    min-width: 0;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.card-body {
    padding: 20px;
    min-width: 0;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.stat-card .stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

/* Tables */
.table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.table-responsive table {
    table-layout: fixed;
    word-break: break-word;
}

table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

table td {
    padding: 12px 14px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

table tr:hover {
    background: #f8fafc;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badge-warning { background: #eab308; color: #fff; }
.badge-orange  { background: #f97316; color: #fff; }
.badge-success { background: #22c55e; color: #fff; }
.badge-pink    { background: #ec4899; color: #fff; }
.badge-purple  { background: #a855f7; color: #fff; }
.badge-danger  { background: #ef4444; color: #fff; }

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-content.modal-lg {
    max-width: 720px;
}

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

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary);
    padding: 4px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Calendar */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.calendar-grid.day-view {
    display: block;
    border: none;
    border-radius: 0;
    background: none;
    gap: 0;
}

.calendar-day-header {
    background: var(--light);
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
}

.calendar-day {
    background: #fff;
    min-height: 100px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-day:hover {
    background: #f8fafc;
}

.calendar-day.other-month {
    background: #fafafa;
    color: var(--gray);
}

.calendar-day.today {
    background: #eff6ff;
}

.calendar-day .day-number {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.calendar-day .day-event {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.day-event.event-onay_bekliyor { background: #fef9c3; color: #854d0e; border-left: 4px solid #eab308; }
.day-event.event-karsilama_bekliyor { background: #ffedd5; color: #9a3412; border-left: 4px solid #f97316; }
.day-event.event-teslim_edildi { background: #dcfce7; color: #166534; border-left: 4px solid #22c55e; }
.day-event.event-teslim_edilmedi { background: #fce7f3; color: #9d174d; border-left: 4px solid #ec4899; }
.day-event.event-rotarli { background: #f3e8ff; color: #6b21a8; border-left: 4px solid #a855f7; }
.day-event.event-iptal { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }

/* Daily View List - 24 hour timeline */
.daily-list {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.daily-row {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
}

.daily-row:last-child {
    border-bottom: none;
}

.daily-row-time {
    width: 70px;
    flex-shrink: 0;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
    background: #f8fafc;
    border-right: 1px solid var(--border);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.daily-row-content {
    flex: 1;
    padding: 6px 10px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.daily-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    border-left: 4px solid var(--gray);
    background: #fff;
    transition: background 0.15s;
    overflow: hidden;
}

.daily-card:hover {
    background: #f8fafc;
}

.daily-card.event-onay_bekliyor { border-left-color: #eab308; background: #fefce8; }
.daily-card.event-karsilama_bekliyor { border-left-color: #f97316; background: #fff7ed; }
.daily-card.event-teslim_edildi { border-left-color: #22c55e; background: #f0fdf4; }
.daily-card.event-teslim_edilmedi { border-left-color: #ec4899; background: #fdf2f8; }
.daily-card.event-rotarli { border-left-color: #a855f7; background: #faf5ff; }
.daily-card.event-iptal { border-left-color: #ef4444; background: #fef2f2; }

.dc-time {
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    color: var(--dark);
    min-width: 38px;
}

.dc-name {
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.dc-flight {
    font-size: 11px;
    color: var(--secondary);
    background: #f1f5f9;
    padding: 1px 7px;
    border-radius: 3px;
    white-space: nowrap;
}

.dc-meta {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

.dc-delay {
    font-weight: 700;
    color: #dc2626;
}

.dc-badge {
    margin-left: auto;
    flex-shrink: 0;
}

.dc-badge .badge {
    font-size: 10px;
    padding: 3px 10px;
}

@media (max-width: 768px) {
    .daily-list {
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .daily-row-time {
        width: 50px;
        font-size: 11px;
        padding: 8px 4px;
    }

    .daily-row-content {
        padding: 4px 8px;
        min-height: 36px;
        gap: 3px;
    }

    .daily-card {
        padding: 4px 8px;
        gap: 2px 6px;
        font-size: 11px;
    }

    .dc-time { font-size: 11px; min-width: 28px; }
    .dc-name { font-size: 11px; }
    .dc-flight { font-size: 10px; }
    .dc-meta { font-size: 10px; }

    .dc-badge { display: none; }
}

@media (max-width: 480px) {
    .daily-row-time {
        width: 40px;
        font-size: 10px;
        padding: 6px 2px;
    }

    .daily-row-content {
        padding: 2px 6px;
        min-height: 30px;
        gap: 2px;
    }

    .daily-card {
        padding: 3px 6px;
        gap: 1px 4px;
        font-size: 10px;
    }

    .dc-time { font-size: 10px; min-width: 24px; }
    .dc-name { font-size: 10px; }
    .dc-flight { font-size: 9px; padding: 0 5px; }
    .dc-meta { font-size: 9px; }
}

/* Weekly view - more compact events in 7 col */
.week-event {
    font-size: 10px;
    padding: 1px 4px;
}

/* Reservation cards (agency panel) */
.reservation-cards {
    display: grid;
    gap: 16px;
}

.res-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.res-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 0;
}

.res-card-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
}

.res-card-body {
    padding: 10px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}

.res-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 13px;
}

.res-card-label {
    color: var(--secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 8px;
}

.res-card-value {
    text-align: right;
    word-break: break-word;
}

.res-card-footer {
    display: flex;
    gap: 8px;
    padding: 8px 16px 12px;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

.res-card-footer .status-select {
    flex: 1;
    height: 36px;
    font-size: 13px;
}

/* Status left border colors */
.res-card {
    border-left: 4px solid var(--border);
}
.res-card-onay_bekliyor { border-left: 4px solid #eab308; }
.res-card-karsilama_bekliyor { border-left: 4px solid #f97316; }
.res-card-teslim_edildi { border-left: 4px solid #22c55e; }
.res-card-teslim_edilmedi { border-left: 4px solid #ec4899; }
.res-card-rotarli { border-left: 4px solid #a855f7; }
.res-card-iptal { border-left: 4px solid #ef4444; }

@media (max-width: 600px) {
    .res-card-body {
        grid-template-columns: 1fr;
    }
}

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
    max-width: 100%;
}

.filter-bar .form-control {
    flex: 1 1 160px;
    min-width: 120px;
    max-width: 100%;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--dark);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--light);
}

.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--secondary);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
}

/* Mobile toggle */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    color: var(--dark);
    flex-shrink: 0;
}

/* Reports */
.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.report-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.report-item .value {
    font-size: 32px;
    font-weight: 700;
}

.report-item .label {
    font-size: 12px;
    color: var(--secondary);
    text-transform: uppercase;
    margin-top: 4px;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-area {
        padding: 12px;
    }

    .topbar {
        padding: 10px 12px;
    }

    .topbar .page-title {
        font-size: 15px;
    }

    .filter-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .filter-bar .form-control {
        width: 100%;
        min-width: auto;
        font-size: 13px;
        padding: 8px 10px;
    }

    .filter-bar .btn {
        width: 100%;
    }

    .filter-bar > .btn:last-child,
    .filter-bar > a:last-child {
        margin-top: 0;
    }

    .card-body {
        padding: 14px;
    }

    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }

    .calendar-day .day-event {
        font-size: 9px;
        padding: 1px 4px;
    }

    .report-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .report-item {
        padding: 14px;
    }

    .report-item .value {
        font-size: 24px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }

    /* Card layout for tables on mobile */
    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
        display: block;
    }
    .table-responsive thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .table-responsive tr {
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow);
    }
    .table-responsive td {
        padding: 10px 14px;
        padding-left: 44%;
        position: relative;
        border-bottom: 1px solid var(--border);
        min-height: 42px;
        white-space: normal;
        font-size: 13px;
        word-break: break-word;
        width: auto;
    }
    .table-responsive td:last-child {
        border-bottom: none;
    }
    .table-responsive td:before {
        content: attr(data-label);
        position: absolute;
        left: 14px;
        width: 38%;
        font-weight: 700;
        font-size: 10px;
        color: var(--secondary);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        white-space: normal;
        overflow: visible;
    }
    .table-responsive .table-actions {
        padding-left: 14px;
        padding-top: 12px;
        padding-bottom: 12px;
        white-space: normal;
    }
    .table-responsive .table-actions:before {
        display: none;
    }
    .table-responsive .table-actions select,
    .table-responsive .table-actions button,
    .table-responsive .table-actions a {
        width: 100% !important;
        margin-bottom: 6px;
        display: block !important;
        text-align: center;
    }
    .table-responsive .table-actions select {
        height: 40px;
        font-size: 14px !important;
    }
}

/* Compact table at tablet sizes */
@media (min-width: 769px) and (max-width: 1024px) {
    .table-responsive td {
        padding: 6px 8px;
        font-size: 11px;
    }
    .table-responsive th {
        padding: 8px;
        font-size: 10px;
    }
    .table-responsive .badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    .table-responsive .btn-sm {
        font-size: 10px;
        padding: 3px 6px;
    }
    .table-responsive select {
        font-size: 11px !important;
        padding: 3px 4px !important;
        height: 28px !important;
    }
    /* Daily view tablet compact */
    .daily-row-time {
        width: 60px;
        font-size: 12px;
        padding: 10px 6px;
    }
    .daily-row-content {
        padding: 5px 8px;
        min-height: 40px;
        gap: 3px;
    }
    .daily-card {
        padding: 5px 10px;
        gap: 3px 8px;
        font-size: 11px;
    }
    .dc-time { font-size: 12px; min-width: 32px; }
    .dc-name { font-size: 12px; }
    .dc-flight { font-size: 10px; }
    .dc-meta { font-size: 10px; }
    .dc-badge .badge { font-size: 9px; padding: 2px 8px; }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .table-responsive td {
        padding: 8px 10px;
        padding-left: 44%;
        min-height: 36px;
        font-size: 12px;
    }

.table-responsive td:before {
    font-size: 8px;
}

.table-responsive td[data-label="Not"],
.table-responsive td[data-label="İşlem"] {
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}


    .modal-content {
        margin: 10px;
        max-height: 85vh;
    }

    .modal-header {
        padding: 14px 16px;
    }

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

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .report-summary {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .report-item {
        padding: 12px 8px;
    }

    .report-item .value {
        font-size: 20px;
    }

    .user-info span:not(.badge) {
        display: none;
    }
}

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--secondary); }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.table-actions { white-space: normal; }
.table-actions select,
.table-actions button,
.table-actions a {
    min-width: 0;
}

/* Detail table */
.detail-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 16px;
    font-size: 14px;
}

.detail-grid .detail-label {
    font-weight: 600;
    color: var(--secondary);
}

.detail-grid .detail-value {
    color: var(--dark);
}

/* Status Legend */
.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    padding: 16px 0 8px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
}

.legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-dot.legend-warning { background: #eab308; }
.legend-dot.legend-orange  { background: #f97316; }
.legend-dot.legend-success { background: #22c55e; }
.legend-dot.legend-pink    { background: #ec4899; }
.legend-dot.legend-purple  { background: #a855f7; }
.legend-dot.legend-danger  { background: #ef4444; }

/* Quick Links */
.quick-links {
    margin-top: 8px;
}

.quick-links h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}

.link-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
    text-decoration: none;
}

@media (max-width: 480px) {
    .link-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .link-card {
        padding: 14px 10px;
        font-size: 12px;
    }
}

/* Print */
@media print {
    .sidebar, .topbar, .btn, .filter-bar, .no-print {
        display: none !important;
    }
    .main-content { margin-left: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}
