/* ============================================================================
   FILE: dashboard-responsive.css
   PATH: public/css/dashboard-responsive.css
   VERSION: 4.0.0
   PURPOSE: Clean, full-width dashboard layout for the AviaSAFE SMS UI.
            - Fixed full-width header with brand, nav (WordPress-style dropdowns)
              and user/logout — NO sidebar, NO hamburger, NO overlay
            - Two-row header: Top (brand + user) / Yellow divider / Bottom (nav)
            - Page hero (airline name + department subtitle)
            - Main content full width
            - Single-line footer
            - Breakpoints: 768px
   AUTHOR: AviaSAFE Systems
   ============================================================================ */

/* ===== HEADER removed — header layout now lives in shell.css ===== */



/* ===== LAYOUT - Keep footer at bottom ===== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* ===== MAIN CONTENT (adjust for two rows) ===== */
.main-content,
.app-shell .shell-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
}

.main-content {
    margin-top: 0;
    padding: 20px 30px 20px;
    min-height: 100vh;
    background: #f5f7fa;
    flex: 1;
}

/* ===== PAGE HERO (airline name + subtitle) ===== */
.page-hero {
    padding: 16px 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e8eaed;
}
.page-hero h1 {
    font-size: 22px;
    font-weight: 600;
    color: #1a237e;
    margin: 0;
}
.page-hero .subtitle {
    font-size: 14px;
    color: #666;
    margin: 4px 0 0 0;
}

/* Backwards-compat: previous .page-header block maps onto .page-hero */
.page-header {
    padding: 8px 0 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #e8eaed;
}
.page-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #1a237e;
}
.page-header .subtitle {
    font-size: 13px;
    color: #666;
    margin: 2px 0 0 0;
}

/* ===== FOOTER ===== */
.app-footer {
    background: #e8f0fe;
    border-top: 2px solid #ffd700;
    padding: 16px 20px;
    text-align: center;
    font-size: 14px;
    color: #1a237e;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
}

.app-footer .heart {
    color: #e53935;
    display: inline-block;
    font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-content {
        margin-top: 0;
        padding: 12px 12px;
    }

    .page-hero h1 {
        font-size: 18px;
    }
    .page-hero .subtitle {
        font-size: 12px;
    }

    .app-footer {
        font-size: 12px;
        padding: 12px 16px;
        min-height: 48px;
    }
}

/* ===== FEEDBACK MODAL ===== */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.feedback-btn {
    background: linear-gradient(135deg, #ffd700 0%, #f7b500 100%);
    color: #1a237e;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.feedback-btn:hover {
    background: linear-gradient(135deg, #f7b500 0%, #e6a300 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}
.feedback-btn:active {
    transform: translateY(0);
}

.feedback-modal {
    position: fixed;
    inset: 0;
    background: rgba(11, 42, 66, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.feedback-modal.open {
    display: flex;
}

.feedback-modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 24px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.25s ease;
}

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

.feedback-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.feedback-close:hover {
    background: #f0f0f0;
    color: #1a237e;
}

.feedback-modal-content h2 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    color: #1a237e;
}

.feedback-rating {
    margin-bottom: 20px;
}
.feedback-rating label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.stars {
    display: flex;
    gap: 8px;
}
.star {
    background: none;
    border: none;
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.15s ease, color 0.15s ease;
    line-height: 1;
}
.star:hover,
.star.filled {
    color: #ffd700;
    transform: scale(1.15);
}
.star:focus-visible {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
    border-radius: 4px;
}

.feedback-field {
    margin-bottom: 16px;
}
.feedback-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}
.feedback-field input,
.feedback-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #1a237e;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.feedback-field input:focus,
.feedback-field textarea:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.15);
}
.feedback-field textarea {
    resize: vertical;
    min-height: 100px;
}
.feedback-field input::placeholder,
.feedback-field textarea::placeholder {
    color: #999;
}

.feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}
.feedback-btn-cancel,
.feedback-btn-submit {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.feedback-btn-cancel {
    background: transparent;
    color: #555;
    border: 1px solid #d0d7de;
}
.feedback-btn-cancel:hover {
    background: #f5f5f5;
    border-color: #bbb;
}
.feedback-btn-submit {
    background: linear-gradient(135deg, #1a237e 0%, #0d1b5e 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.3);
}
.feedback-btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d1b5e 0%, #0a1445 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.4);
}
.feedback-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


