/* Uçak Portal - panel özel stilleri. Metronic (style.bundle.css) üzerine eklenir. */

:root {
    --up-brand: #1b3a6b;
    --up-brand-soft: #eef3fb;
    --up-border: #e9edf5;
    --up-text-muted: #78829d;
    --up-radius: 12px;
    --up-shadow: 0 2px 10px rgba(27, 58, 107, .06);
}

body {
    font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Marka ---------- */
.up-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--up-brand);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .5px;
}

.up-brand-mark-lg {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 20px;
}

.up-brand-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--up-brand);
}

.up-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--up-brand-soft);
    color: var(--up-brand);
    font-weight: 600;
    font-size: 13px;
}

/* ---------- Sayfa düzeni ---------- */
.up-content {
    padding-top: 28px;
    padding-bottom: 40px;
}

.up-page-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.up-page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #181c32;
}

.up-page-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--up-text-muted);
}

/* ---------- Kart ---------- */
.up-card {
    background: #fff;
    border: 1px solid var(--up-border);
    border-radius: var(--up-radius);
    box-shadow: var(--up-shadow);
    overflow: hidden;
}

.up-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--up-border);
}

.up-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #181c32;
}

.up-card-body {
    padding: 20px 22px;
}

.up-card-foot {
    display: flex;
    justify-content: flex-end;
    padding: 14px 22px;
    border-top: 1px solid var(--up-border);
}

.up-card-foot .pagination {
    margin: 0;
}

/* ---------- Özet kartları ---------- */
.up-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--up-border);
    border-radius: var(--up-radius);
    box-shadow: var(--up-shadow);
}

.up-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.up-stat-icon-primary { background: #eef3fb; color: #1b3a6b; }
.up-stat-icon-success { background: #e8fff3; color: #17c653; }
.up-stat-icon-warning { background: #fff8dd; color: #f6c000; }
.up-stat-icon-info    { background: #f1eeff; color: #7239ea; }

.up-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    color: #181c32;
}

.up-stat-label {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--up-text-muted);
}

/* ---------- Tablo ---------- */
.up-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.up-table thead th {
    padding: 12px 22px;
    background: #fbfcfe;
    border-bottom: 1px solid var(--up-border);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--up-text-muted);
    white-space: nowrap;
}

.up-table tbody td {
    padding: 14px 22px;
    border-bottom: 1px solid #f4f6fa;
    font-size: 13px;
    vertical-align: middle;
}

.up-table tbody tr:last-child td {
    border-bottom: 0;
}

.up-table tbody tr:hover {
    background: #fcfdff;
}

/* ---------- Logo ---------- */
.up-logo-thumb {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: contain;
    background: #f6f8fc;
    border: 1px solid var(--up-border);
    flex-shrink: 0;
}

.up-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--up-brand);
}

/* ---------- Kategori dağılım çubuğu ---------- */
.up-bar-row {
    margin-bottom: 14px;
    font-size: 13px;
}

.up-bar-track {
    height: 6px;
    border-radius: 6px;
    background: #f1f4f9;
    overflow: hidden;
}

.up-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: var(--up-brand);
}

/* ---------- Giriş ekranı ---------- */
.up-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px 16px;
    background: linear-gradient(160deg, #f6f8fc 0%, #eef3fb 100%);
}

.up-auth-card {
    width: 100%;
    max-width: 420px;
    padding: 34px;
    background: #fff;
    border: 1px solid var(--up-border);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(27, 58, 107, .10);
}

.up-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.up-auth-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #181c32;
}

.up-auth-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--up-text-muted);
}

.up-auth-footer {
    margin: 0;
    font-size: 12px;
    color: var(--up-text-muted);
}

/* ---------- API anahtarı ---------- */
.up-key {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: #f6f8fc;
    border: 1px dashed var(--up-border);
    border-radius: 8px;
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 12px;
    color: #181c32;
    word-break: break-all;
}

/* ---------- Boş durum ---------- */
.up-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--up-text-muted);
}

@media (max-width: 767.98px) {
    .up-card-head,
    .up-card-body,
    .up-card-foot { padding-left: 16px; padding-right: 16px; }

    .up-table thead th,
    .up-table tbody td { padding-left: 16px; padding-right: 16px; }
}
