:root {
    /* Main background: Very light, modern sky-gray */
    --bg: #f8fafc; 
    
    /* Card backgrounds: Pure white for elevation */
    --card: #ffffff; 
    
    /* Primary Aero Blue (#3f6ac9) */
    --mint: #3f6ac9; 
    
    /* Deep Navy for secondary elements and the 'Avatar' */
    --violet: #1e293b; 
    
    /* Text: High contrast charcoal for readability */
    --text-high: #0f172a; 
    
    /* Muted text: Slate gray for sub-labels */
    --text-low: #64748b; 
    
    /* Input & Divider Borders: Soft blue-tinted gray */
    --input-border: #e2e8f0; 
}

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

body {
    background-color: var(--bg);
    color: var(--text-high);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.5;
}

/* --- NAVIGATION --- */
.dashboard-nav {
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--input-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { 
    font-weight: 800; 
    font-size: 1.2rem; 
    letter-spacing: 2px; 
    color: var(--text-high); 
    text-decoration: none; 
}

.logo span { color: var(--mint); }

.user-profile { display: flex; align-items: center; gap: 12px; }

.avatar { 
    width: 35px; 
    height: 35px; 
    background: var(--violet); 
    color: white;
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 800; 
    font-size: 0.8rem;
}

/* --- LAYOUT --- */
.list-container {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 5%;
}

.list-header { margin-bottom: 30px; }

.list-header h1 { 
    font-size: clamp(1.8rem, 5vw, 2.2rem); 
    margin-bottom: 8px; 
    color: var(--text-high); 
    letter-spacing: -1px;
}

.list-header p { color: var(--text-low); font-size: 0.95rem; }

.list-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 30px;
    align-items: start;
}

/* --- CARDS & FORMS --- */
.form-card {
    background: var(--card);
    border: 1px solid var(--input-border);
    border-radius: 24px;
    padding: clamp(20px, 4vw, 32px);
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-card h3 { 
    margin-bottom: 20px; 
    font-size: 1.1rem; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: var(--text-high); 
}

.form-card h3 i { color: var(--mint); }

.card-subtitle { 
    font-size: 0.85rem; 
    color: var(--text-low); 
    margin-top: -15px; 
    margin-bottom: 20px; 
}

.input-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}

.input-group { margin-bottom: 20px; display: flex; flex-direction: column; }

.input-group label { 
    font-size: 0.85rem; 
    color: var(--text-high); 
    margin-bottom: 8px; 
    font-weight: 700; 
}

input, select, textarea {
    background: #ffffff;
    border: 1px solid var(--input-border);
    padding: 14px;
    border-radius: 12px;
    color: var(--text-high);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.2s ease;
    width: 100%;
}

input:focus, select:focus, textarea:focus { 
    outline: none; 
    border-color: var(--mint); 
    box-shadow: 0 0 0 4px rgba(63, 106, 201, 0.08);
}

textarea { height: 100px; resize: none; }

.btn-publish {
    width: 100%;
    background: var(--mint);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-publish:hover { 
    background: var(--violet);
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(30, 41, 59, 0.15); 
}

/* --- TICKET PREVIEW --- */
.sticky-preview { position: sticky; top: 100px; }

.sticky-preview h4 { 
    margin-bottom: 15px; 
    color: var(--text-low); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.7rem; 
    font-weight: 800; 
}

.preview-ticket {
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--input-border);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.ticket-top {
    padding: 15px 20px;
    background: rgba(63, 106, 201, 0.05);
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--mint);
    border-bottom: 1px solid var(--input-border);
}

.ticket-main { padding: 30px 20px; text-align: center; color: var(--text-high); }

.route { 
    display: flex; 
    align-items: center; 
    justify-content: space-around; 
    gap: 10px;
}

.city { display: flex; flex-direction: column; }

.code { 
    font-size: clamp(1.8rem, 4vw, 2.2rem); 
    font-weight: 900; 
    letter-spacing: -1px; 
}

.label { 
    font-size: 0.65rem; 
    color: var(--text-low); 
    text-transform: uppercase; 
    font-weight: 700; 
}

.plane-icon { font-size: 1.2rem; color: var(--mint); }

.ticket-bottom {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 2px dashed var(--input-border);
    background: white;
    gap: 15px;
}

.info-bit span { 
    display: block; 
    font-size: 0.6rem; 
    color: var(--text-low); 
    margin-bottom: 4px; 
    font-weight: 700; 
    text-transform: uppercase; 
}

.info-bit strong { font-size: 0.85rem; color: var(--text-high); }

.status-badge { color: #10b981; font-weight: 800; }

.barcode {
    height: 40px;
    margin: 15px 20px;
    background: repeating-linear-gradient(90deg, #1e293b, #1e293b 2px, transparent 2px, transparent 5px);
    opacity: 0.6;
}

.disclaimer { 
    margin-top: 20px; 
    font-size: 0.8rem; 
    color: var(--text-low); 
    line-height: 1.5; 
    font-weight: 500; 
}

.disclaimer i { color: var(--mint); margin-right: 6px; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .list-container {
        margin-top: 15px;
    }

    .list-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .preview-section { 
        order: -1; /* Move Preview to top for mobile users to see it first */
    }

    .sticky-preview {
        position: relative;
        top: 0;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .list-header {
        text-align: center;
        margin-bottom: 20px;
    }

    .form-card {
        padding: 20px;
    }

    .btn-publish {
        padding: 16px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .dashboard-nav {
        padding: 10px 5%;
    }
    
    .ticket-main {
        padding: 20px 10px;
    }
    
    .ticket-bottom {
        padding: 15px;
    }
}