/* ==========================================================================
   PAINEL DOS NOIVOS (MASTERCLASS DESIGN SYSTEM & MOBILE UX) — JULIANE & DIEGO
   ========================================================================== */

:root {
    --bg-page: #F8F6F1;
    --bg-card: #FFFFFF;
    --border-color: #E8E4DC;
    --border-subtle: #F0EDE6;
    
    --primary-sage: #3A4B3C;
    --primary-sage-dark: #263327;
    --primary-sage-light: #EBF0EC;
    
    --gold: #C59B27;
    --gold-dark: #9E7B1A;
    --gold-light: #FDF9EE;
    
    --text-main: #222222;
    --text-muted: #777777;
    --text-light: #999999;
    
    --danger: #E74C3C;
    --success: #27AE60;
    --warning: #D35400;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    
    --transition: all 0.25s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 70px; /* Space for mobile bottom nav */
}

/* APP HEADER */
.app-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--shadow-sm);
}

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

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.brand-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(197, 155, 39, 0.25);
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-sage-dark);
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-header-link,
.btn-header-logout {
    background: #F4F1EA;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-header-link:hover,
.btn-header-logout:hover {
    background: var(--primary-sage);
    color: #fff;
    border-color: var(--primary-sage);
}

/* APP BODY & LOGIN SECTION */
.app-body {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.2rem;
}

.view-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65vh;
}

.login-box {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.login-avatar {
    width: 56px;
    height: 56px;
    background: var(--gold-light);
    color: var(--gold-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.2rem auto;
}

.login-heading {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--primary-sage-dark);
    margin-bottom: 0.3rem;
}

.login-subheading {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.login-form-body {
    text-align: left;
}

.form-field {
    margin-bottom: 1.2rem;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.input-eye-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-eye-group input,
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #FAFAFA;
    color: var(--text-main);
    transition: var(--transition);
}

.input-eye-group input {
    padding-right: 3rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-sage);
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(58, 75, 60, 0.1);
}

.btn-eye-toggle {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.4rem;
}

.btn-gold-action {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-sage), var(--primary-sage-dark));
    color: #fff;
    border: none;
    padding: 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 12px rgba(58, 75, 60, 0.2);
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-gold-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(58, 75, 60, 0.3);
}

.error-toast {
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
}

.success-toast {
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.8rem;
}

.hidden { display: none !important; }

/* EXECUTIVE KPI CARDS GRID */
.kpi-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-badge-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.card-revenue .kpi-badge-icon { background: rgba(197, 155, 39, 0.12); color: var(--gold-dark); }
.card-confirmed .kpi-badge-icon { background: rgba(39, 174, 96, 0.12); color: var(--success); }
.card-declined .kpi-badge-icon { background: rgba(231, 76, 60, 0.12); color: var(--danger); }
.card-gifts .kpi-badge-icon { background: rgba(58, 75, 60, 0.12); color: var(--primary-sage); }

.kpi-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kpi-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-main-val {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin: 0.1rem 0;
    white-space: nowrap;
}

.kpi-sub-text {
    font-size: 0.78rem;
    color: var(--primary-sage);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* DESKTOP TABS & TOOLBAR */
.desktop-tab-navigation {
    display: flex;
    gap: 0.6rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.8rem;
}

.nav-tab-item {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    margin-bottom: -2px;
}

.nav-tab-item:hover,
.nav-tab-item.active {
    color: var(--primary-sage-dark);
    border-bottom-color: var(--primary-sage);
}

.panel-header-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input-field {
    position: relative;
    flex: 1;
    max-width: 380px;
}

.search-input-field i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-input-field input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--bg-card);
}

.status-chips-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.chip-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.chip-item:hover,
.chip-item.active {
    background: var(--primary-sage);
    color: #fff;
    border-color: var(--primary-sage);
}

.btn-csv-export {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--primary-sage);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-csv-export:hover {
    background: var(--primary-sage);
    color: #fff;
    border-color: var(--primary-sage);
}

/* DESKTOP STYLED TABLE */
.data-table-container {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--border-subtle);
}

.styled-table th {
    background-color: #F6F4EE;
    color: var(--primary-sage-dark);
    font-weight: 600;
    font-size: 0.85rem;
}

.styled-table tbody tr:hover {
    background-color: rgba(58, 75, 60, 0.02);
}

/* STATUS BADGES & LINKS */
.status-pill {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pill.status-yes { background: rgba(39, 174, 96, 0.12); color: var(--success); }
.status-pill.status-no { background: rgba(231, 76, 60, 0.12); color: var(--danger); }

.tag-alert-diet {
    background: rgba(211, 84, 0, 0.1);
    color: var(--warning);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.link-wa-direct {
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.link-wa-direct:hover { text-decoration: underline; }

.btn-icon-trash {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.4rem;
    transition: var(--transition);
}

.btn-icon-trash:hover { transform: scale(1.15); }

/* MOBILE CARDS VIEW & GRID */
.mobile-view-only { display: none; }
.desktop-view-only { display: block; }

.mobile-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.native-m-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.m-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-subtle);
}

.m-guest-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-sage-dark);
}

.m-gift-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.m-body-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.88rem;
}

.m-data-line {
    display: flex;
    justify-content: space-between;
}

.m-label { color: var(--text-muted); }
.m-val { font-weight: 600; color: var(--text-main); }

.m-quote-box {
    background: #FAFAFA;
    border-left: 3px solid var(--primary-sage);
    padding: 0.75rem;
    border-radius: 4px;
    font-style: italic;
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.m-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-subtle);
}

/* PLAYLIST & MURAL CARDS */
.split-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.ui-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.single-card-center {
    max-width: 520px;
    margin: 0 auto;
}

.ui-card-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.ui-card-title-bar h2,
.ui-card h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary-sage-dark);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.count-tag {
    background: var(--gold-light);
    color: var(--gold-dark);
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ui-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.scrollable-feed {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 440px;
    overflow-y: auto;
}

.feed-song-card {
    background: #FAFAFA;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.song-disc-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-sage-light);
    color: var(--primary-sage-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.song-text-meta {
    display: flex;
    flex-direction: column;
}

.song-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.song-author {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.feed-msg-card {
    background: #FAFAFA;
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.msg-author-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-sage-dark);
    margin-bottom: 0.3rem;
}

.msg-body-text {
    font-size: 0.88rem;
    font-style: italic;
    color: var(--text-main);
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* MOBILE BOTTOM NAVIGATION BAR (SMARTPHONES) */
.bottom-nav-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.b-nav-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    gap: 3px;
    cursor: pointer;
    padding: 0.4rem;
    flex: 1;
    transition: var(--transition);
}

.b-nav-item i {
    font-size: 1.25rem;
}

.b-nav-item.active {
    color: var(--gold-dark);
    font-weight: 700;
}

/* RESPONSIVE MEDIA QUERIES (MOBILE UX REFUSE) */
@media (max-width: 768px) {
    body {
        padding-bottom: 75px;
    }

    .desktop-view-only,
    .desktop-tab-navigation,
    .desktop-text {
        display: none !important;
    }

    .mobile-view-only,
    .bottom-nav-mobile {
        display: flex !important;
    }

    .app-header {
        padding: 0.75rem 1rem;
    }

    .brand-logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .app-body {
        padding: 1.2rem 0.9rem;
    }

    .kpi-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .kpi-card {
        padding: 0.9rem;
        gap: 0.8rem;
    }

    .kpi-badge-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .kpi-tag {
        font-size: 0.65rem;
    }

    .kpi-main-val {
        font-size: 1.3rem;
    }

    .kpi-sub-text {
        font-size: 0.72rem;
    }

    .panel-header-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-right-row {
        display: flex;
        gap: 0.8rem;
    }

    .search-input-field {
        max-width: 100%;
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
    }

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

    .ui-card {
        padding: 1.4rem;
    }
}

/* ==========================================================================
   MURAL MODERATION & REORDERING STYLES (ADMIN)
   ========================================================================== */
.badge-status-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-visible {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.badge-hidden {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.msg-card-hidden {
    opacity: 0.65;
    background: #fafafa;
    border-left: 3px solid #e74c3c !important;
}

.mural-mod-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.btn-mod-icon {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.btn-mod-icon:hover:not(.disabled) {
    background: var(--primary-sage-light);
    color: var(--primary-sage-dark);
    border-color: var(--primary-sage);
}

.btn-mod-icon.btn-show {
    color: #27ae60;
    border-color: rgba(39, 174, 96, 0.4);
}

.btn-mod-icon.btn-hide {
    color: #e67e22;
    border-color: rgba(230, 126, 34, 0.4);
}

.btn-mod-icon.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
