/* ============================
   GLOBAL PAGE STYLING
   ============================ */

/* Basis: gilt nur auf User-Seiten */
body.page-users {
    padding: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Dark-Theme-Hintergrund nur für User-Seiten */
body.dark.page-users {
    background: radial-gradient(circle at top, #5a4c3b 0%, #2b2626 55%, #211d1d 100%) no-repeat fixed;
}

/* Optional: eigener Hintergrund für Light-Theme */
body.light.page-users {
    background: #f5f5f5; /* oder var(--bg-light) */
}


/* ============================
   UPLOAD BOX
   ============================ */

.fl-upload-wrapper {
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 8px;
    border: 2px solid #f5a623;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    background: linear-gradient(to bottom right,
        rgba(50, 45, 45, 0.98),
        rgba(30, 26, 26, 0.98)
    );
}

/* ============================
   PROFILE BOX
   ============================ */

.fl-profil-wrapper {
    width: 98%;
    margin: 0 auto;
    border-radius: 8px;
    border: 2px solid #f5a623;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    background: linear-gradient(to bottom right,
        rgba(50, 45, 45, 0.98),
        rgba(30, 26, 26, 0.98)
    );
}

.fl-upload-header {
    background: #f5a623;
    padding: 12px 20px;
    font-weight: 700;
    color: #000;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fl-upload-body {
    padding: 20px;
}

/* ============================
   LOG-AUSGABE IN DER KARTE
   ============================ */

.fl-upload-body pre {
    margin: 0;
    width: 100%;
    box-sizing: border-box;

    background: #2b2626;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #555;

    /* WICHTIG: Text umbrechen, damit nichts aus der Karte rausläuft */
    white-space: pre-wrap;   /* Zeilenumbrüche + Wrap */
    word-wrap: break-word;   /* lange Wörter / URLs umbrechen */
}

/* ============================
   FORM ELEMENTE
   ============================ */

.fl-form-row {
    margin-bottom: 18px;
}

.fl-form-row label {
    display: block;
    margin-bottom: 6px;
    color: #ffb84d; /* ähnlich wie deine Labels im Screenshot */
    font-weight: 600;
}

/* Text-Input */
.fl-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 6px;
    border: 2px solid #555;
    background: #2b2626;
    color: #eee;
    font-size: 0.95rem;
}

/* File-Input (Basis – Browser-Standard, aber im CI-Rahmen) */
.fl-file-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 6px;
    border-radius: 6px;
    border: 2px solid #555;
    background: #2b2626;
    color: #eee;
    font-size: 0.9rem;
}

.fl-input:focus,
.fl-file-input:focus {
    outline: none;
    border-color: #f5a623;
    box-shadow: 0 0 6px rgba(245, 166, 35, 0.7);
}

/* Kleine Hilfstexte */
.fl-hint {
    font-size: 0.8rem;
    color: #bbb;
    margin-top: 4px;
}

/* ============================
   BUTTONS – CI STYLE
   ============================ */

.fl-button-row {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

/* Basis-Button (Form, Schatten, etc.) */
.fl-btn {
    border-radius: 20px;
    border: 2px solid rgba(0, 0, 0, 0.4);
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    transition:
        background 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
	text-align: center;
    text-decoration: none;
}

/* Orange Primary (für Upload starten) – angelehnt an dein CI */
.fl-btn-primary {
    background: #f5a623;
    color: #000;
}

.fl-btn-primary:hover {
    background: #ffb845;
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.fl-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
}

/* Sekundärer Button (z.B. Fenster schließen) */
.fl-btn-secondary {
    background: #444;
    color: #eee;
}

.fl-btn-secondary:hover {
    background: #666;
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.fl-btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
}

/* Status-Buttons im Stil von SELECT / SELECTED (falls du sie später brauchst) */
.fl-btn-status-select {
    background: #d62828;   /* rot */
    color: #fff;
}

.fl-btn-status-selected {
    background: #2aaa2a;   /* grün, wie dein SELECTED */
    color: #fff;
}

/* ============================
   ERROR BOX
   ============================ */

.fl-error {
    margin: 0 auto 20px auto;
    width: 90%;
    max-width: 700px;
    border-radius: 6px;
    padding: 10px 15px;
    background: #8b1e1e;
    border: 2px solid #ff4d4d;
    color: #ffecec;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

/* =========================================
   LINK-STYLING IM USER-BEREICH
   ========================================= */

/* alle Links im User-Bereich (Login, Register, Profil, Upload, etc.) */
body.page-users a {
    text-decoration: none;
}

/* Hover/Fokus – CI-Gelb */
body.page-users a:hover,
body.page-users a:focus {
    text-decoration: none;
}

/* ============================
   AIRFRAME TABLES (WETVA Style)
   ============================ */

.fl-airframe-container {
    overflow-x: auto; 
    background: rgba(0, 0, 0, 0.2); 
    padding: 10px; 
    border: 1px solid #555; 
    border-radius: 5px; 
    margin-bottom: 15px;
}

.fl-airframe-table {
    width: 100%; 
    font-size: 20px; 
    color: #ddd; 
    border-collapse: collapse; 
    white-space: nowrap;
}

/* Kopfzeile: Orange-Transparent (rgba 243, 156, 18, 0.2) */
.fl-airframe-table thead tr {
    background: rgba(243, 156, 18, 0.2); 
    color: #f39c12; 
    text-align: left;
}

.fl-airframe-table th {
    padding: 8px; 
    border: 1px solid #444; 
    text-transform: uppercase;
}

.fl-airframe-table td {
    padding: 8px; 
    border: 1px solid #444; 
    font-family: monospace;
}

/* Spezialfarben innerhalb der Tabelle */
.fl-airframe-table td strong {
    color: #fff;
}

.fl-airframe-table td.location-cell {
    color: #f39c12;
}

.fl-airframe-table input[type="checkbox"] {
    cursor: pointer; 
    accent-color: #f39c12;
}

/* Delete Button in der Tabelle */
.fl-btn-delete {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.2s;
}

.fl-btn-delete:hover {
    background: #e74c3c;
}

.fl-airframe-table .fl-airline-select {
    background: #222;
    color: #fff;
    border: 1px solid #555;
}