/* ==========================================================================
   MINISTÉRIO DE MÍDIA - SISTEMA DE ESCALA MENSAL
   DESIGN SYSTEM ULTRA-MODERNO & 100% RESPONSIVO (MOBILE-FIRST POLISH)
   TYPOGRAPHY: SPACE GROTESK + INTER + BARLOW CONDENSED + JETBRAINS MONO
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Fira+Code:wght@400;600&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800;900&display=swap');

/* --------------------------------------------------------------------------
   1. VARIÁVEIS DO SISTEMA (TEMA DARK PROFISSIONAL / GLASSMORPHISM)
   -------------------------------------------------------------------------- */
:root {
    /* Superfícies e Fundos */
    --bg-color: #080c16;
    --bg-card: rgba(14, 22, 38, 0.85);
    --card-bg: #0e1628;
    --card-bg-hover: #141f38;
    --card-glass: rgba(15, 23, 42, 0.7);
    --card-glass-hover: rgba(22, 33, 58, 0.85);
    
    /* Bordas & Divisores */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-focus: #6366f1;
    --border-glow: rgba(99, 102, 241, 0.3);
    
    /* Tipografia e Textos */
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-yellow: #fbbf24;
    
    /* Ações e Cores de Destaque */
    --accent-blue: #4f46e5;
    --accent-blue-hover: #4338ca;
    --accent-blue-light: #6366f1;
    --accent-blue-subtle: rgba(99, 102, 241, 0.12);
    
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-emerald-subtle: rgba(16, 185, 129, 0.12);
    --accent-amber: #f59e0b;
    --accent-amber-subtle: rgba(245, 158, 11, 0.12);
    
    /* Alertas e Status */
    --danger: #f43f5e;
    --danger-hover: #e11d48;
    --danger-bg: rgba(244, 63, 94, 0.12);
    --danger-border: rgba(244, 63, 94, 0.3);
    
    /* Cores Departamentais */
    --dept-fotos: #f43f5e;
    --dept-stories: #f97316;
    --dept-luzes: #eab308;
    --dept-aovivo: #10b981;
    --dept-letras: #06b6d4;
    --dept-suporte: #3b82f6;
    --dept-som: #8b5cf6;
    --dept-direcao: #ec4899;
    
    /* Tipografia (Igual ao site Galeria Church do Alto) */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-display: 'Barlow Condensed', system-ui, sans-serif;
    --font-tech: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Sombras & Brilhos */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    --shadow-blue: 0 0 24px rgba(99, 102, 241, 0.35);
    --shadow-yellow: 0 0 24px rgba(251, 191, 36, 0.25);
    --shadow-emerald: 0 0 24px rgba(16, 185, 129, 0.25);
    
    /* Transições Suaves */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Raios de Arredondamento */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 9999px;
}

/* --------------------------------------------------------------------------
   2. RESET & ESTILOS GLOBAIS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 50% -10%, rgba(99, 102, 241, 0.12), transparent 45%),
        radial-gradient(circle at 90% 20%, rgba(6, 182, 212, 0.05), transparent 35%),
        radial-gradient(circle at 10% 80%, rgba(139, 92, 246, 0.05), transparent 40%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   3. TIPOGRAFIA & ELEMENTOS BÁSICOS
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-color);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.text-yellow { color: var(--text-yellow) !important; }
.text-blue { color: var(--accent-blue-light) !important; }
.text-emerald { color: var(--accent-emerald) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--text-muted) !important; }
.font-heading { font-family: var(--font-heading) !important; }

.link-yellow {
    color: var(--text-yellow);
    font-weight: 600;
    transition: all var(--transition-fast);
}
.link-yellow:hover {
    color: #fde047;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. CABEÇALHO & BARRA DE NAVEGAÇÃO (DESIGN SYSTEM ATUALIZADO)
   -------------------------------------------------------------------------- */
.app-header {
    background: #080c16;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 96px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* --- LADO ESQUERDO DO CABEÇALHO --- */
.header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 100%;
}

.btn-more-dots {
    background: transparent;
    border: none;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    outline: none;
}

.btn-more-dots i {
    width: 1.4rem;
    height: 1.4rem;
}

.btn-more-dots:hover {
    color: var(--text-yellow);
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    height: 100%;
}

.logo-img {
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.logo-title {
    font-family: 'Space Grotesk', var(--font-heading), system-ui, sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-family: 'Space Grotesk', var(--font-heading), system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-yellow);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.app-logo:hover .logo-img {
    transform: translateY(-1px);
}

.header-main-nav {
    display: flex;
    align-items: stretch;
    height: 100%;
    margin-left: 0.25rem;
}

.header-main-nav .nav-item-link {
    display: inline-flex;
    align-items: center;
    padding: 0 1.25rem;
    height: 100%;
    color: #cbd5e1;
    font-family: 'Space Grotesk', var(--font-heading), system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
}

.header-main-nav .nav-item-link:hover {
    color: var(--text-yellow);
    background: rgba(255, 255, 255, 0.02);
}

.header-main-nav .nav-item-link.active {
    color: var(--text-yellow);
    background: rgba(251, 191, 36, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

/* --- LADO DIREITO DO CABEÇALHO --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    height: 100%;
}

.header-search-wrapper {
    display: flex;
    align-items: center;
    background: #060911;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    padding: 3px 4px 3px 14px;
    height: 38px;
    min-width: 240px;
    transition: all var(--transition-fast);
}

.header-search-wrapper:focus-within {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.18);
    background: #080d1a;
}

.header-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.82rem;
    font-family: 'JetBrains Mono', var(--font-tech), 'Fira Code', monospace;
    width: 100%;
}

.header-search-input::placeholder {
    color: #64748b;
    font-family: 'JetBrains Mono', var(--font-tech), monospace;
    font-size: 0.78rem;
    font-weight: 500;
}

.btn-search-action {
    background: #182030;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 0.74rem;
    font-weight: 700;
    font-family: 'Space Grotesk', var(--font-heading), system-ui, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    line-height: 1.2;
}

.btn-search-action:hover {
    background: #232d42;
    color: var(--text-yellow);
    border-color: rgba(251, 191, 36, 0.35);
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-dot-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(14, 22, 40, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    padding: 0 14px;
    height: 36px;
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Space Grotesk', var(--font-heading), system-ui, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
}

.btn-dot-action:hover {
    background: rgba(22, 33, 58, 0.95);
    border-color: rgba(251, 191, 36, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-dot-action.btn-entrar {
    border-color: rgba(251, 191, 36, 0.7);
    color: var(--text-yellow);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.12);
}

.btn-dot-action.btn-entrar:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: #fde047;
    color: #fde047;
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.3);
}

.btn-dot-action.btn-dot-logout {
    border-color: rgba(244, 63, 94, 0.35);
    color: #f87171;
    background: rgba(244, 63, 94, 0.08);
}

.btn-dot-action.btn-dot-logout:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: #f43f5e;
    color: #ffffff;
}

.header-dot {
    color: #fbbf24;
    font-size: 0.65rem;
    line-height: 1;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.9);
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(14, 22, 40, 0.75);
    border: 1px solid var(--border-color);
    color: #ffffff;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: var(--card-bg-hover);
    border-color: var(--text-yellow);
    color: var(--text-yellow);
}

.mobile-menu-toggle i {
    width: 1.3rem;
    height: 1.3rem;
}

/* --- MOBILE DROPDOWN --- */
.mobile-nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #080c16;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
    padding: 1.15rem 1.25rem 1.5rem 1.25rem;
    flex-direction: column;
    gap: 1.15rem;
    z-index: 999;
    animation: slideDownNav 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-nav-dropdown.active {
    display: flex;
}

@keyframes slideDownNav {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-search-block {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.mobile-search-block input {
    flex: 1;
    background: #060911;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    padding: 0.6rem 1rem;
    color: #ffffff;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', var(--font-tech), monospace;
    outline: none;
}

.mobile-search-block input:focus {
    border-color: rgba(251, 191, 36, 0.6);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: #94a3b8;
    font-family: 'Space Grotesk', var(--font-heading), system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: rgba(251, 191, 36, 0.08);
    color: var(--text-yellow);
    border-left: 3px solid var(--text-yellow);
    padding-left: calc(1rem - 3px);
}

.mobile-nav-link i {
    width: 1.15rem;
    height: 1.15rem;
}

.mobile-menu-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.mobile-auth-actions {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    color: var(--text-yellow);
    font-weight: 700;
    font-size: 0.88rem;
}

/* --- SIDE DRAWER (MENU LATERAL COMPLETO) --- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.app-drawer {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    max-width: 85vw;
    height: 100vh;
    background: #090e1a;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.app-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(14, 22, 40, 0.5);
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.drawer-logo {
    height: 34px;
    width: 34px;
    object-fit: contain;
}

.drawer-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.drawer-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.drawer-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-yellow);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.drawer-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.drawer-close:hover {
    color: #ffffff;
    background: var(--danger);
    border-color: var(--danger);
}

.drawer-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.drawer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 0.15rem;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-decoration: none;
    background: rgba(14, 22, 40, 0.4);
    border: 1px solid transparent;
}

.drawer-link i {
    width: 1.15rem;
    height: 1.15rem;
    opacity: 0.8;
}

.drawer-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color);
}

.drawer-link.active {
    color: var(--text-yellow);
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
}

.drawer-link.active i {
    opacity: 1;
    color: var(--text-yellow);
}

.drawer-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-actions-stack .btn {
    justify-content: flex-start;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
}

.drawer-auth-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
}

.drawer-user-info i {
    color: var(--accent-blue-light);
}

.drawer-church-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: rgba(14, 22, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #f8fafc;
    transition: all var(--transition-fast);
}

.drawer-church-card:hover {
    border-color: var(--text-yellow);
    background: rgba(22, 33, 58, 0.8);
}

.drawer-church-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.drawer-church-text strong {
    font-size: 0.85rem;
    color: #ffffff;
}

.drawer-church-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.mobile-only-block {
    display: none;
}

/* --- BANNER DE RESULTADOS DE BUSCA --- */
.search-results-banner {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: fadeSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.search-banner-content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: #f8fafc;
}

.search-banner-icon {
    color: var(--text-yellow);
    width: 1.15rem;
    height: 1.15rem;
}

.search-count-badge {
    background: var(--text-yellow);
    color: #080c16;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-left: 0.35rem;
}

.btn-clear-search {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.btn-clear-search:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #ffffff;
}

.search-match {
    background: rgba(251, 191, 36, 0.2);
    color: var(--text-yellow) !important;
    padding: 1px 4px;
    border-radius: 4px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    font-weight: 800;
}

/* --- VIEW: ÁLBUNS DE FOTOS --- */
.albuns-controls-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.albuns-filter-pills {
    display: flex;
    align-items: center;
    background: rgba(14, 22, 40, 0.6);
    border: 1px solid var(--border-color);
    padding: 0.25rem;
    border-radius: var(--radius-pill);
    gap: 0.25rem;
}

.album-filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.album-filter-btn:hover {
    color: #ffffff;
}

.album-filter-btn.active {
    background: var(--text-yellow);
    color: #080c16;
    box-shadow: var(--shadow-yellow);
}

.albuns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.album-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.album-cover {
    height: 190px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    overflow: hidden;
}

.album-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(8, 12, 22, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 5px;
}

.album-badge i {
    width: 0.85rem;
    height: 0.85rem;
    color: var(--text-yellow);
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 12, 22, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-action-btn {
    background: var(--text-yellow);
    color: #080c16;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-yellow);
}

.album-info {
    padding: 1.25rem;
}

.album-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-yellow);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 0.35rem;
}

.album-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.45rem;
}

.album-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* --- VIEW: MURAL DE RECADOS --- */
.mural-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mural-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.mural-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.mural-card-highlight {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.05) 0%, rgba(14, 22, 40, 0.85) 100%);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.08);
}

.mural-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.mural-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mural-tag i {
    width: 0.8rem;
    height: 0.8rem;
}

.tag-urgent {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.tag-info {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.tag-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.mural-date {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.mural-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.65rem;
}

.mural-body {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.mural-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}

.mural-author {
    font-size: 0.78rem;
    color: var(--text-yellow);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mural-author i {
    width: 0.9rem;
    height: 0.9rem;
}

/* --------------------------------------------------------------------------
   5. CONTAINER PRINCIPAL E VIEWS DO SPA
   -------------------------------------------------------------------------- */
.app-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2.25rem 1.5rem 4rem 1.5rem;
    min-height: calc(100vh - 75px);
}

.spa-view {
    display: none;
}

.spa-view.active {
    display: block;
    animation: fadeSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.view-title {
    font-size: 1.95rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.35rem;
    letter-spacing: -0.03em;
}

.view-subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   6. COMPONENTES: BOTÕES
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    border: 1px solid transparent;
    user-select: none;
    text-align: center;
}

.btn i {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

.btn-blue,
.btn-green {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #3b82f6 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

.btn-blue:hover,
.btn-green:hover {
    box-shadow: var(--shadow-blue);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
}

.btn-yellow {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #0f172a;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

.btn-yellow:hover {
    box-shadow: var(--shadow-yellow);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.btn-outline-blue {
    background: rgba(99, 102, 241, 0.08);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.btn-outline-blue:hover {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-blue);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-outline-danger {
    background: var(--danger-bg);
    color: #fb7185;
    border: 1px solid var(--danger-border);
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: #ffffff;
    border-color: var(--danger);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
    transform: translateY(-1px);
}

.btn-icon {
    background: rgba(14, 22, 40, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.btn-icon:hover {
    border-color: var(--border-focus);
    background: var(--card-bg-hover);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.w-100 { width: 100%; }
.margin-top-md { margin-top: 1.5rem; }
.margin-top-lg { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   7. COMPONENTES: CARDS & GLASSMORPHISM
   -------------------------------------------------------------------------- */
.card {
    background: var(--card-bg);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.border-blue { border-color: rgba(99, 102, 241, 0.3); }
.border-blue:hover { border-color: var(--accent-blue-light); }

.border-yellow { border-color: rgba(251, 191, 36, 0.3); }
.border-yellow:hover { border-color: var(--text-yellow); }

.border-green { border-color: rgba(16, 185, 129, 0.3); }
.border-green:hover { border-color: var(--accent-emerald); }

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card-title i {
    width: 1.3rem;
    height: 1.3rem;
}

/* --------------------------------------------------------------------------
   8. FORMULÁRIOS & CAMPOS DE ENTRADA
   -------------------------------------------------------------------------- */
.form-card {
    max-width: 440px;
    margin: 3.5rem auto;
    background: var(--card-bg);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.25rem;
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.35rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: #cbd5e1;
    font-family: var(--font-heading);
}

.form-group input, 
.form-group select {
    width: 100%;
    background: #080d1a;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--border-focus);
    background: #0c1428;
    box-shadow: 0 0 0 3px var(--border-glow);
}

.form-group input::placeholder {
    color: var(--text-dim);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

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

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.form-footer {
    margin-top: 1.75rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   9. VIEW: ESCALA PÚBLICA (#escala) - GRADE DE CARDS POR DATA (AGENDA)
   -------------------------------------------------------------------------- */
.escala-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.escala-controls-block {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.desktop-scale-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.mobile-scale-actions {
    display: none;
}

.mobile-menu-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-yellow);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.2rem;
}

.month-selector-pill {
    display: flex;
    align-items: center;
    background: rgba(14, 22, 40, 0.85);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    gap: 0.6rem;
    box-shadow: var(--shadow-sm);
}

.month-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.month-nav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

#scale-month-display {
    min-width: 120px;
    text-align: center;
    color: #ffffff;
}
/* ==========================================================================
   GRADE DE CARDS POR DATA (ESTILO MINIMALISTA, CENTRALIZADO & PRETO E AMARELO)
   ========================================================================== */
.scale-cards-wrapper {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.scale-minimal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.15rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

/* --- CARD INDIVIDUAL MINIMALISTA (PRETO E AMARELO) --- */
.scale-minimal-card {
    background: #080c16;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.scale-minimal-card:hover {
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

/* Header do Card */
.card-minimal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.75rem;
}

.card-date-group {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.card-day-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.card-day-weekday-box {
    display: flex;
    flex-direction: column;
}

.card-weekday-text {
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-header-badges {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Tag de Período Discreta */
.card-period-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.6rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.card-period-tag i {
    width: 0.8rem;
    height: 0.8rem;
}

.card-period-tag.period-manha {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.25);
}

.card-period-tag.period-tarde {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.card-period-tag.period-noite {
    color: #fef08a;
    background: rgba(254, 240, 138, 0.06);
    border-color: rgba(254, 240, 138, 0.2);
}

/* Badge HOJE Discreta no Card */
.badge-today-discrete {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
    font-size: 0.66rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-today-discrete .today-dot-pulse {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #fbbf24;
    box-shadow: 0 0 4px #fbbf24;
}

/* Mini Alerta de Evento */
.scale-event-mini-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-left: 2.5px solid #fbbf24;
    border-radius: 5px;
    padding: 0.4rem 0.65rem;
    margin-bottom: 0.65rem;
    font-size: 0.76rem;
}

.scale-event-mini-banner i {
    color: #fbbf24;
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.event-mini-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.event-mini-title-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.event-mini-tag {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #fbbf24;
    color: #080c16;
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 1.2;
}

.event-mini-title {
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 700;
    font-family: var(--font-heading);
}

.event-mini-time {
    font-size: 0.7rem;
    color: #fde047;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-tech);
}

.event-mini-time i {
    width: 0.7rem;
    height: 0.7rem;
}

.event-mini-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.3;
    margin-top: 1px;
}

/* Corpo e Linhas do Card */
.card-minimal-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.scale-minimal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.38rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    gap: 0.75rem;
}

.scale-minimal-row:last-child {
    border-bottom: none;
}

.scale-minimal-row.is-empty {
    opacity: 0.4;
}

.scale-minimal-dept {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dept-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #fbbf24;
    box-shadow: 0 0 4px rgba(251, 191, 36, 0.5);
    flex-shrink: 0;
}

.scale-minimal-member {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
    text-align: right;
    word-break: break-word;
}

.member-empty {
    color: #475569;
    font-weight: 400;
}

.tag-train {
    font-family: var(--font-tech);
    font-size: 0.6rem;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    padding: 0 4px;
    border-radius: 3px;
    margin-left: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.search-match {
    background: #fbbf24;
    color: #080c16;
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 700;
}

/* Rodapé do Card */
.card-minimal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.55rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-staff-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-tech);
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

.card-staff-count i {
    width: 0.8rem;
    height: 0.8rem;
    color: #64748b;
}

.card-staff-count.complete {
    color: #fbbf24;
    font-weight: 600;
}

.card-staff-count.complete i {
    color: #fbbf24;
}

/* ==========================================================================
   DESTAQUE: ESCALA DO DIA (MINIMALISTA, CENTRALIZADA & ELEGANTE)
   ========================================================================== */
.today-minimal-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto 2.5rem auto;
    background: #080c16;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.75);
}

.today-minimal-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    opacity: 0.9;
}

.today-minimal-header-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(251, 191, 36, 0.12);
    position: relative;
}

.today-tag-pill-top {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.2rem;
}

.today-tag-pill-top .today-dot-pulse {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #fbbf24;
    box-shadow: 0 0 5px #fbbf24;
}

.today-title-main-centered {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.today-subtitle-date-centered {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-tech);
    font-size: 0.88rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.15rem;
}

.today-subtitle-date-centered .date-formatted {
    color: #ffffff;
    font-weight: 700;
}

.today-subtitle-date-centered .date-sep {
    color: rgba(251, 191, 36, 0.4);
}

.today-subtitle-date-centered .date-weekday {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 0.06em;
}

.today-minimal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.15rem;
    justify-content: center;
}

/* Card de Hoje em Destaque Minimalista */
.scale-minimal-card.is-today {
    background: #0a0f1d;
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 15px rgba(251, 191, 36, 0.06);
}

.scale-minimal-card.is-today:hover {
    border-color: #fbbf24;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 20px rgba(251, 191, 36, 0.12);
}

.scale-minimal-card.is-today .card-day-num {
    color: #fbbf24;
}

.scale-minimal-card.is-today .card-weekday-text {
    color: #ffffff;
}

/* Divisor de Seção Demais Escalas do Mês */
.scales-month-section-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.25rem 0 1.35rem 0;
    max-width: 1140px;
    width: 100%;
    align-self: center;
}

.section-bar-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.section-bar-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.section-bar-title i {
    width: 0.85rem;
    height: 0.85rem;
    color: #64748b;
}

/* --- BOTÃO DE EVENTOS DO MÊS --- */
.btn-warning-glow {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: var(--text-yellow);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-warning-glow:hover {
    background: rgba(251, 191, 36, 0.18);
    border-color: #fde047;
    color: #fde047;
    transform: translateY(-1px);
}

.btn-warning-glow i {
    width: 1rem;
    height: 1rem;
}

.events-count-pill {
    background: #fbbf24;
    color: #080c16;
    font-size: 0.68rem;
    font-weight: 900;
    border-radius: var(--radius-pill);
    padding: 2px 7px;
    line-height: 1;
}

.training-obs {
    display: inline-block;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fef08a;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: fit-content;
}

.escala-empty-card {
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 3.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    color: var(--text-muted);
    text-align: center;
    width: 100%;
}

.escala-empty-card .empty-icon {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--accent-blue-light);
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   10. VIEW: DISPONIBILIDADE DO MEMBRO (#disponibilidade)
   -------------------------------------------------------------------------- */
.member-panel {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

.edit-counter-badge {
    background: rgba(14, 22, 40, 0.85);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-counter-badge strong {
    color: #ffffff;
}

.edit-counter-badge strong:first-of-type {
    color: var(--text-yellow);
}

.member-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.75rem;
}

/* Calendário */
.calendar-card {
    display: flex;
    flex-direction: column;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.calendar-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.cal-day {
    aspect-ratio: 1;
    min-height: 46px;
    background: rgba(8, 13, 26, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    user-select: none;
}

.cal-day:hover:not(.empty-day) {
    border-color: var(--accent-blue-light);
    background: var(--card-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cal-day.empty-day {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.cal-day-num {
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.cal-day-periods {
    display: flex;
    gap: 3px;
    width: 100%;
    justify-content: center;
    height: 6px;
}

.cal-period-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all var(--transition-fast);
}

.cal-period-dot.active {
    background-color: var(--accent-emerald);
    box-shadow: 0 0 6px var(--accent-emerald);
}

.cal-day.has-avail {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.cal-day.has-avail:hover {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.cal-day.has-avail .cal-day-num {
    color: var(--accent-emerald);
}

.calendar-legend {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.legend-dot.green { background-color: var(--accent-emerald); box-shadow: 0 0 6px var(--accent-emerald); }
.legend-dot.text-muted { background-color: rgba(255, 255, 255, 0.2); }

/* Resumo Lateral */
.summary-card {
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.summary-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.summary-list {
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
    border: 1px solid var(--border-color);
    background: rgba(6, 10, 20, 0.4);
    border-radius: var(--radius-sm);
    padding: 0.65rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.summary-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.summary-item-date {
    font-weight: 700;
    font-family: var(--font-heading);
    white-space: nowrap;
}

.summary-item-periods {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.period-pill {
    background: var(--accent-emerald-subtle);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill);
}

.empty-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    margin: 2rem 0;
    font-style: italic;
}

.summary-actions {
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   11. PAINEL DO ADMIN MASTER (#admin)
   -------------------------------------------------------------------------- */
.admin-panel-container {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

.admin-tabs {
    display: flex;
    gap: 0.35rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.75rem 1.15rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.tab-btn i {
    width: 1rem;
    height: 1rem;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    color: var(--text-yellow);
    border-bottom-color: var(--text-yellow);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-grid-layout {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.admin-grid-layout > .card {
    width: 100%;
}

.date-input-wrapper {
    position: relative;
    width: 100%;
}

.date-input-wrapper input[type="date"] {
    width: 100%;
    cursor: pointer;
}

.sched-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.sched-departments-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.sched-submit-row {
    width: 100%;
    margin-top: 1rem;
}

.dept-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.35rem;
}

.dot-fotos { background-color: var(--dept-fotos); box-shadow: 0 0 6px var(--dept-fotos); }
.dot-stories { background-color: var(--dept-stories); box-shadow: 0 0 6px var(--dept-stories); }
.dot-luzes { background-color: var(--dept-luzes); box-shadow: 0 0 6px var(--dept-luzes); }
.dot-aovivo { background-color: var(--dept-aovivo); box-shadow: 0 0 6px var(--dept-aovivo); }
.dot-letras { background-color: var(--dept-letras); box-shadow: 0 0 6px var(--dept-letras); }
.dot-suporte { background-color: var(--dept-suporte); box-shadow: 0 0 6px var(--dept-suporte); }
.dot-som { background-color: var(--dept-som); box-shadow: 0 0 6px var(--dept-som); }
.dot-direcao { background-color: var(--dept-direcao); box-shadow: 0 0 6px var(--dept-direcao); }

.info-alert {
    background: rgba(99, 102, 241, 0.08);
    border: 1px dashed rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-top: 1rem;
}

/* Tabelas Administrativas */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
}

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

.admin-table th, 
.admin-table td {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.admin-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.admin-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.badge-edit-count {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: var(--text-yellow);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   12. MODAL DE SELEÇÃO DE PERÍODOS
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #0e1628;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.25) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform var(--transition-smooth);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 1.25rem 1.35rem;
}

.modal-date-title {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent-emerald);
    margin-bottom: 0.2rem;
}

.modal-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.15rem;
}

.periods-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.period-option {
    display: flex;
    align-items: center;
    background: #080d1a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.period-option:hover {
    border-color: var(--border-focus);
    background: #0c1428;
}

.period-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin-right: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.period-option input[type="checkbox"]:checked ~ .checkbox-custom {
    background-color: var(--accent-emerald);
    border-color: var(--accent-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.checkbox-custom::after {
    content: '';
    display: none;
    width: 5px;
    height: 9px;
    border: solid #000000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.period-option input[type="checkbox"]:checked ~ .checkbox-custom::after {
    display: block;
}

.period-option input[type="checkbox"]:checked ~ .period-text strong {
    color: var(--accent-emerald);
}

.period-text {
    display: flex;
    flex-direction: column;
}

.period-text strong {
    font-size: 0.92rem;
    font-family: var(--font-heading);
    transition: color var(--transition-fast);
}

.period-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-footer {
    padding: 1.15rem 1.35rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

/* --- MODAL DE EVENTOS DO MÊS --- */
.modal-events-card {
    max-width: 600px;
}

.modal-events-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.25rem;
}

.modal-events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item-card {
    background: #080d1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #fbbf24;
    border-radius: var(--radius-sm);
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.event-item-card:hover {
    border-color: rgba(251, 191, 36, 0.5);
    background: #0b1326;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.event-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.event-item-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-item-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.event-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    flex-wrap: wrap;
}

.event-item-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.event-item-meta-item i {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--text-yellow);
}

.event-item-desc {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.45;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.modal-events-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.empty-events-icon {
    width: 3rem;
    height: 3rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.modal-events-empty h4 {
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-events-empty p {
    font-size: 0.85rem;
    color: #64748b;
    max-width: 320px;
}

/* --------------------------------------------------------------------------
   13. TOAST NOTIFICATIONS (ALERTAS FLUTUANTES)
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--border-focus);
    padding: 0.9rem 1.15rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    color: var(--text-color);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success { border-left-color: var(--accent-emerald); }
.toast-success i { color: var(--accent-emerald); }

.toast-warning { border-left-color: var(--text-yellow); }
.toast-warning i { color: var(--text-yellow); }

.toast-danger { border-left-color: var(--danger); }
.toast-danger i { color: var(--danger); }

@keyframes toastIn {
    from { transform: translateX(100%) translateY(0); opacity: 0; }
    to { transform: translateX(0) translateY(0); opacity: 1; }
}

.toast.hide {
    animation: toastOut 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--text-muted);
    padding: 3rem;
    font-size: 0.95rem;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   14. RESPONSIVIDADE PROFISSIONAL (MOBILE BREAKPOINTS)
   -------------------------------------------------------------------------- */

/* TABLETS E TELAS MÉDIAS (<= 1080px) */
@media (max-width: 1080px) {
    .sched-departments-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* TABLETS E TELAS MENORES (<= 960px) */
@media (max-width: 960px) {
    .member-layout {
        grid-template-columns: 1fr;
    }
    .summary-card {
        min-height: auto;
    }
}

/* TABLETS E TELAS INTERMEDIÁRIAS (<= 1024px) */
@media (max-width: 1024px) {
    .header-main-nav .nav-item-link {
        padding: 0 0.85rem;
        font-size: 0.78rem;
    }
    .header-search-wrapper {
        min-width: 180px;
    }
}

/* SMARTPHONES E TABLETS (<= 860px) */
@media (max-width: 860px) {
    .header-main-nav {
        display: none;
    }
    .header-search-wrapper {
        display: none;
    }
    .auth-actions {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

/* SMARTPHONES EM GERAL (<= 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .app-header {
        height: 76px;
    }

    .header-container {
        padding: 0 0.85rem;
    }

    .app-logo img.logo-img {
        width: 58px;
        height: 58px;
        max-width: 58px;
        max-height: 58px;
    }

    .logo-title {
        font-size: 1.05rem;
    }

    .logo-subtitle {
        font-size: 0.62rem;
    }

    .albuns-grid, .mural-cards-grid {
        grid-template-columns: 1fr;
    }

    .app-main {
        padding: 1.25rem 1rem 3.5rem 1rem;
    }

    .view-title {
        font-size: 1.5rem;
    }

    .view-subtitle {
        font-size: 0.85rem;
    }

    /* Escala Pública */
    .escala-header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .escala-controls-block {
        width: 100%;
    }

    .desktop-scale-actions {
        display: none !important;
    }

    .mobile-scale-actions {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        padding: 0.75rem 0;
        border-top: 1px solid var(--border-color);
    }

    .month-selector-pill {
        width: 100%;
        justify-content: space-between;
        padding: 0.4rem 0.85rem;
    }

    #scale-month-display {
        font-size: 1rem;
    }

    /* Cards Minimalistas Mobile */
    .today-minimal-container {
        padding: 1.35rem 1rem 1.45rem 1rem;
        margin-bottom: 1.5rem;
    }

    .today-minimal-header-centered {
        gap: 0.35rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }

    .today-title-main-centered {
        font-size: 1.55rem;
    }

    .today-subtitle-date-centered {
        font-size: 0.82rem;
        padding: 0.35rem 0.95rem;
        gap: 0.45rem;
    }

    .today-minimal-grid,
    .scale-minimal-grid {
        grid-template-columns: 1fr;
        gap: 0.95rem;
    }

    .scale-minimal-card {
        padding: 1rem 0.95rem;
    }

    .card-day-num {
        font-size: 1.4rem;
    }

    .card-weekday-text {
        font-size: 0.7rem;
    }

    .card-period-tag {
        font-size: 0.68rem;
        padding: 0.2rem 0.55rem;
    }

    .scale-minimal-dept {
        font-size: 0.75rem;
    }

    .scale-minimal-member {
        font-size: 0.8rem;
    }

    /* Formulários de Autenticação */
    .form-card {
        margin: 1.25rem auto;
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-md);
    }

    .form-header h2 {
        font-size: 1.4rem;
    }

    /* Disponibilidade / Calendário */
    .panel-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .edit-counter-badge {
        width: 100%;
        justify-content: center;
    }

    .calendar-card, 
    .summary-card {
        padding: 1.25rem 1rem;
    }

    .calendar-days {
        gap: 0.3rem;
    }

    .cal-day {
        min-height: 42px;
        padding: 0.25rem;
    }

    .cal-day-num {
        font-size: 0.82rem;
    }

    .cal-period-dot {
        width: 5px;
        height: 5px;
    }

    /* Admin */
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .admin-header .btn {
        width: 100%;
    }

    .admin-tabs {
        width: 100%;
        gap: 0.2rem;
    }

    .tab-btn {
        padding: 0.65rem 0.85rem;
        font-size: 0.82rem;
    }

    .sched-top-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sched-departments-grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-row-2, .form-row-3 {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .admin-scale-controls-block {
        width: 100%;
        justify-content: space-between;
    }

    /* Toasts em Celular */
    .toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        min-width: unset;
    }

    .toast {
        min-width: unset;
        max-width: 100%;
    }
}

/* SMARTPHONES PEQUENOS (<= 480px) */
@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 0.75rem;
    }

    .nav-link span {
        display: inline;
    }

    .nav-link {
        padding: 0.35rem 0.55rem;
        font-size: 0.75rem;
    }

    .nav-link i {
        width: 0.9rem;
        height: 0.9rem;
    }

    .card {
        padding: 1.25rem 1rem;
    }

    .modal-footer {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   15. REGRAS DE IMPRESSÃO & EXPORTAÇÃO PDF PROFISSIONAL (MODO PAISAGEM)
   -------------------------------------------------------------------------- */
.print-only-header {
    display: none;
}

@page {
    size: A4 landscape;
    margin: 8mm;
}

@media print {
    body {
        background-color: #ffffff !important;
        color: #0f172a !important;
        font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .print-only-header {
        display: block !important;
        margin-bottom: 1rem !important;
    }

    .print-header-layout {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
        border: 1px solid #334155 !important;
        border-radius: 8px !important;
        padding: 0.85rem 1.25rem !important;
        color: #ffffff !important;
    }

    .print-header-brand {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .print-logo {
        width: 44px !important;
        height: 44px !important;
        object-fit: contain !important;
    }

    .print-header-text h2 {
        font-size: 13pt !important;
        font-weight: 800 !important;
        margin: 0 !important;
        color: #ffffff !important;
        letter-spacing: -0.01em !important;
    }

    .print-header-desc {
        font-size: 7.5pt !important;
        font-weight: 600 !important;
        color: #94a3b8 !important;
        margin: 2px 0 0 0 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
    }

    .print-header-meta {
        display: flex !important;
        gap: 1.5rem !important;
        text-align: right !important;
    }

    .print-meta-item {
        display: flex !important;
        flex-direction: column !important;
    }

    .print-meta-label {
        font-size: 6.5pt !important;
        font-weight: 700 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
    }

    .print-meta-value {
        font-size: 9.5pt !important;
        font-weight: 800 !important;
        color: #f8fafc !important;
    }

    .app-header, 
    .btn, 
    .escala-header-container,
    .calendar-legend,
    .summary-actions,
    .app-nav,
    .toast-container {
        display: none !important;
    }

    .app-main {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .scale-wrapper {
        width: 100% !important;
        background-color: #ffffff !important;
        padding: 0 !important;
    }

    .today-minimal-container {
        background: #fffbeb !important;
        border: 1.5px solid #f59e0b !important;
        box-shadow: none !important;
        padding: 8px 10px !important;
        margin-bottom: 12px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .today-minimal-title-row,
    .today-minimal-header-centered {
        border-bottom: 1px solid #fde68a !important;
        padding-bottom: 4px !important;
        margin-bottom: 6px !important;
    }

    .today-minimal-grid,
    .scale-minimal-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .scales-month-section-bar {
        margin: 12px 0 8px 0 !important;
    }

    .scale-minimal-card {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 6px !important;
        color: #0f172a !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        padding: 8px 10px !important;
    }

    .card-minimal-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-bottom: 5px !important;
        margin-bottom: 5px !important;
        border-bottom: 1.5px solid #e2e8f0 !important;
    }

    .card-day-num {
        color: #0f172a !important;
        font-size: 11pt !important;
        font-weight: 800 !important;
    }

    .card-weekday-text {
        color: #475569 !important;
        font-size: 7pt !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
    }

    .card-period-tag {
        background: #0f172a !important;
        color: #ffffff !important;
        border: none !important;
        font-size: 7pt !important;
        font-weight: 700 !important;
        padding: 2px 7px !important;
        border-radius: 4px !important;
        text-transform: uppercase !important;
    }

    .card-period-tag i {
        display: none !important;
    }

    .card-minimal-body {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
    }

    .scale-minimal-row {
        background: #f8fafc !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 4px !important;
        padding: 3.5px 6px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .scale-minimal-dept {
        color: #475569 !important;
        font-size: 7.5pt !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .dept-dot {
        width: 6px !important;
        height: 6px !important;
    }

    .scale-minimal-member {
        color: #0f172a !important;
        font-size: 8pt !important;
        font-weight: 700 !important;
    }

    .member-empty {
        color: #94a3b8 !important;
        font-weight: 400 !important;
    }

    .tag-train {
        background: #fef3c7 !important;
        color: #92400e !important;
        border: 1px solid #fde68a !important;
        font-size: 6.5pt !important;
        font-weight: 700 !important;
        padding: 1px 4px !important;
        border-radius: 3px !important;
        margin-left: 4px !important;
    }

    .card-minimal-footer {
        margin-top: 5px !important;
        padding-top: 4px !important;
        border-top: 1px solid #f1f5f9 !important;
        display: flex !important;
        justify-content: flex-end !important;
    }

    .card-staff-count {
        background: #f1f5f9 !important;
        color: #475569 !important;
        border: 1px solid #e2e8f0 !important;
        font-size: 6.8pt !important;
        font-weight: 600 !important;
        padding: 1px 6px !important;
        border-radius: 3px !important;
    }
}

/* Modo de simulação para html2pdf (Exportação PDF em Paisagem) */
body.pdf-export-mode {
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

body.pdf-export-mode .print-only-header {
    display: block !important;
    margin-bottom: 12px !important;
}

body.pdf-export-mode .print-header-layout {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    padding: 12px 18px !important;
    color: #ffffff !important;
}

body.pdf-export-mode .print-header-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

body.pdf-export-mode .print-logo {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain !important;
}

body.pdf-export-mode .print-header-text h2 {
    font-size: 14pt !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #ffffff !important;
    letter-spacing: -0.01em !important;
}

body.pdf-export-mode .print-header-desc {
    font-size: 8pt !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    margin: 2px 0 0 0 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

body.pdf-export-mode .print-header-meta {
    display: flex !important;
    gap: 20px !important;
    text-align: right !important;
}

body.pdf-export-mode .print-meta-item {
    display: flex !important;
    flex-direction: column !important;
}

body.pdf-export-mode .print-meta-label {
    font-size: 7pt !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

body.pdf-export-mode .print-meta-value {
    font-size: 10pt !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
}

body.pdf-export-mode .app-header, 
body.pdf-export-mode .btn, 
body.pdf-export-mode .escala-header-container,
body.pdf-export-mode .scale-filter-card,
body.pdf-export-mode .calendar-legend,
body.pdf-export-mode .summary-actions,
body.pdf-export-mode .app-nav,
body.pdf-export-mode .toast-container {
    display: none !important;
}

body.pdf-export-mode .app-main {
    padding: 0 !important;
    max-width: 100% !important;
}

body.pdf-export-mode .scale-wrapper {
    width: 1100px !important;
    margin: 0 auto !important;
    background-color: #ffffff !important;
    padding: 8px !important;
}

body.pdf-export-mode .today-minimal-container {
    background: #fffbeb !important;
    border: 1.5px solid #f59e0b !important;
    box-shadow: none !important;
    padding: 10px !important;
    margin-bottom: 14px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
}

body.pdf-export-mode .today-minimal-title-row,
body.pdf-export-mode .today-minimal-header-centered {
    border-bottom: 1px solid #fde68a !important;
    padding-bottom: 6px !important;
    margin-bottom: 8px !important;
}

body.pdf-export-mode .today-minimal-grid,
body.pdf-export-mode .scale-minimal-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
}

body.pdf-export-mode .scales-month-section-bar {
    margin: 14px 0 8px 0 !important;
}

body.pdf-export-mode .scale-minimal-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    color: #0f172a !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    padding: 9px 11px !important;
}

body.pdf-export-mode .card-minimal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 6px !important;
    margin-bottom: 6px !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
}

body.pdf-export-mode .card-day-num {
    color: #0f172a !important;
    font-size: 11.5pt !important;
    font-weight: 800 !important;
}

body.pdf-export-mode .card-weekday-text {
    color: #475569 !important;
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

body.pdf-export-mode .card-period-tag {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
}

body.pdf-export-mode .card-period-tag i {
    display: none !important;
}

body.pdf-export-mode .card-minimal-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

body.pdf-export-mode .scale-minimal-row {
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 4px !important;
    padding: 4px 6px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

body.pdf-export-mode .scale-minimal-dept {
    color: #475569 !important;
    font-size: 7.8pt !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

body.pdf-export-mode .dept-dot {
    width: 6px !important;
    height: 6px !important;
}

body.pdf-export-mode .scale-minimal-member {
    color: #0f172a !important;
    font-size: 8.5pt !important;
    font-weight: 700 !important;
}

body.pdf-export-mode .member-empty {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    font-style: italic !important;
}

body.pdf-export-mode .tag-train {
    background: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
    font-size: 6.8pt !important;
    font-weight: 700 !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    margin-left: 4px !important;
}

body.pdf-export-mode .card-minimal-footer {
    margin-top: 6px !important;
    padding-top: 4px !important;
    border-top: 1px solid #f1f5f9 !important;
    display: flex !important;
    justify-content: flex-end !important;
}

body.pdf-export-mode .card-staff-count {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 7pt !important;
    font-weight: 600 !important;
    padding: 1px 6px !important;
    border-radius: 3px !important;
}

/* --------------------------------------------------------------------------
   PROGRAMADOR DE ESCALA - DESIGN PROFISSIONAL & MODERNO
   -------------------------------------------------------------------------- */
.sched-builder-card {
    background: radial-gradient(circle at top left, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-lg, 14px);
    position: relative;
    overflow: hidden;
}

.sched-card-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

/* Painel de Controle Superior (Data & Período) */
.sched-control-dashboard {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md, 12px);
    padding: 1.15rem;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .sched-control-dashboard {
        grid-template-columns: 1fr;
    }
}

.sched-panel-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.sched-panel-label i {
    width: 15px;
    height: 15px;
    color: var(--accent-blue-light, #818cf8);
}

.sched-quick-dates {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.55rem;
    flex-wrap: wrap;
}

.quick-date-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill, 9999px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.18s ease;
}

.quick-date-pill i {
    width: 12px;
    height: 12px;
    color: var(--accent-blue-light, #818cf8);
}

.quick-date-pill:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Segmented Control de Período */
.period-segmented-control {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.35rem;
}

.period-segment-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #94a3b8;
}

.period-segment-btn .segment-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.period-segment-btn .segment-icon-wrap i {
    width: 16px;
    height: 16px;
}

.period-segment-btn .segment-text-wrap {
    display: flex;
    flex-direction: column;
}

.period-segment-btn .segment-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e2e8f0;
}

.period-segment-btn .segment-sub {
    font-size: 0.68rem;
    color: #64748b;
}

.period-segment-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

.period-segment-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.22);
}

.period-segment-btn.active .segment-icon-wrap {
    background: var(--accent-blue, #4f46e5);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.period-segment-btn.active .segment-title {
    color: #ffffff;
}

.period-segment-btn.active .segment-sub {
    color: #c7d2fe;
}

/* Card do Modo Escala Extra */
.sched-extra-switch-card {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: var(--radius-md, 10px);
    padding: 0.85rem 1.15rem;
    margin-bottom: 1rem;
    transition: all 0.25s ease;
}

.sched-extra-switch-card:hover {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.4);
}

.sched-extra-switch-card.is-active {
    background: rgba(251, 191, 36, 0.12);
    border-color: #fbbf24;
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.15);
}

.extra-switch-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    margin-bottom: 0;
}

.extra-switch-info {
    flex: 1;
}

.extra-switch-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fbbf24;
}

.extra-switch-title i {
    width: 16px;
    height: 16px;
}

.extra-mode-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill, 9999px);
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    transition: all 0.2s ease;
}

.extra-mode-badge.active {
    background: #fbbf24;
    color: #0f172a;
    border-color: #f59e0b;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.extra-switch-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0.2rem 0 0 0;
}

/* Custom Toggle Switch */
.switch-toggle-wrap {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.switch-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    transition: 0.25s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.switch-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-toggle-input:checked + .switch-toggle-slider {
    background-color: #fbbf24;
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.switch-toggle-input:checked + .switch-toggle-slider:before {
    transform: translateX(20px);
    background-color: #0f172a;
}

/* Painel de Visão Geral & Progresso ao Vivo */
.sched-overview-panel {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md, 12px);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.sched-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.progress-title-block {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.progress-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.progress-percent-text {
    font-size: 0.86rem;
    color: #ffffff;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill, 9999px);
}

.progress-status-badge {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill, 9999px);
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-status-badge.complete {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.sched-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sched-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #38bdf8 50%, #34d399 100%);
    border-radius: 9999px;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.sched-metric-chips {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sched-metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
}

.sched-metric-chip i {
    width: 14px;
    height: 14px;
}

.sched-metric-chip strong {
    color: #ffffff;
    font-weight: 700;
}

/* Seções Operacionais de Equipes */
.sched-team-section {
    margin-bottom: 1.75rem;
}

.sched-team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.025);
    border-left: 3px solid var(--accent-blue, #6366f1);
    border-radius: 0 8px 8px 0;
    margin-bottom: 0.9rem;
}

.sched-team-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sched-team-title h4 {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #f1f5f9;
}

.sched-team-badge {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill, 9999px);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.sched-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.15rem;
}

/* Cards de Departamentos com Identidade de Marca */
.sched-dept-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md, 12px);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.22s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    position: relative;
}

.sched-dept-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* Cores específicas de borda sutil por departamento */
.dept-card-fotos { border-top: 3px solid #6366f1; }
.dept-card-stories { border-top: 3px solid #f43f5e; }
.dept-card-letras { border-top: 3px solid #0ea5e9; }
.dept-card-aovivo { border-top: 3px solid #ef4444; }
.dept-card-som { border-top: 3px solid #3b82f6; }
.dept-card-luzes { border-top: 3px solid #f59e0b; }
.dept-card-suporte { border-top: 3px solid #10b981; }
.dept-card-direcao { border-top: 3px solid #d946ef; }

.sched-dept-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sched-dept-box-header label {
    margin-bottom: 0;
    font-weight: 700;
    font-size: 0.94rem;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* Badges de Status (Vago vs Escalado) */
.dept-badge-count {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill, 9999px);
    transition: all 0.2s ease;
}

.dept-badge-count.is-empty {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.dept-badge-count.is-filled {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-weight: 700;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.sched-dept-slots {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 50px;
}

/* Linha de Slot de Integrante */
.dept-slot-row {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-sm, 8px);
    padding: 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    animation: fadeInSlot 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.dept-slot-row:focus-within {
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.18);
}

@keyframes fadeInSlot {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.slot-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    font-weight: 600;
    color: #94a3b8;
}

.slot-number-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #94a3b8;
}

.slot-number-label i {
    width: 12px;
    height: 12px;
    color: #64748b;
}

.dept-slot-row select {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.86rem;
    padding: 0.5rem 0.65rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm, 6px);
    color: #f8fafc;
    transition: border-color 0.15s ease;
}

.dept-slot-row select:focus {
    border-color: var(--accent-blue, #6366f1);
    outline: none;
}

.slot-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.15rem;
}

.treino-label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.76rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.15s ease;
    user-select: none;
}

.treino-label:hover:not(.disabled) {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.06);
}

.treino-label.active {
    color: #fbbf24;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.14);
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.25);
}

.treino-label.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.treino-label input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
    cursor: pointer;
}

.btn-remove-slot {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.15s ease;
}

.btn-remove-slot:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    color: #ffffff;
}

.btn-add-dept-member {
    margin-top: auto;
    width: 100%;
    background: rgba(99, 102, 241, 0.06);
    border: 1px dashed rgba(99, 102, 241, 0.35);
    color: var(--accent-blue-light, #818cf8);
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all var(--transition-fast, 0.18s ease);
}

.btn-add-dept-member i {
    width: 14px;
    height: 14px;
}

.btn-add-dept-member:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.7);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Barra de Ações Inferior */
.sched-submit-row {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-submit-schedule {
    flex: 1;
    padding: 0.95rem 1.75rem;
    font-size: 1.02rem;
    font-weight: 700;
    min-width: 260px;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
    border: none;
    border-radius: var(--radius-sm, 8px);
    transition: all 0.2s ease;
}

.btn-submit-schedule:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(79, 70, 229, 0.5);
}

.btn-reset-schedule {
    padding: 0.95rem 1.4rem;
    font-size: 0.92rem;
    border-radius: var(--radius-sm, 8px);
}

.btn-edit-schedule {
    width: 2rem;
    height: 2rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #818cf8;
    border-radius: var(--radius-sm, 6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-edit-schedule:hover {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
}

/* ==========================================================================
   CENTRAL DE ESCALAS PROGRAMADAS (ADMIN SCHEDULES HUB)
   ========================================================================== */

.admin-schedules-hub-card {
    background: #080808;
    border: 1px solid #1f1f1f;
    border-radius: var(--radius-md, 12px);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-hub-title-box h3 {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-yellow, #ffc800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-scale-controls-block {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.btn-outline-yellow {
    background: rgba(255, 200, 0, 0.05);
    border: 1px solid rgba(255, 200, 0, 0.35);
    color: #ffc800;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 600;
}

.btn-outline-yellow:hover,
.btn-outline-yellow.active {
    background: #ffc800;
    color: #000000;
    border-color: #ffc800;
    box-shadow: 0 0 14px rgba(255, 200, 0, 0.35);
}

/* Mini KPI Dashboard */
.admin-kpi-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .admin-kpi-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-kpi-dashboard {
        grid-template-columns: 1fr;
    }
}

.admin-kpi-card {
    background: #111111;
    border: 1px solid #222222;
    border-radius: var(--radius-sm, 8px);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: all 0.2s ease;
}

.admin-kpi-card:hover {
    border-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.admin-kpi-card.has-vacancies {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.04);
}

.kpi-icon-box {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon-yellow {
    background: rgba(255, 200, 0, 0.12);
    color: #ffc800;
    border: 1px solid rgba(255, 200, 0, 0.3);
}

.kpi-icon-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.kpi-icon-green {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.kpi-icon-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

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

.kpi-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888888;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.kpi-value {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

/* Painel de Distribuição de Participação da Equipe */
.admin-team-distribution-panel {
    background: #0d0d0d;
    border: 1px solid #262626;
    border-radius: var(--radius-sm, 8px);
    padding: 1.25rem;
    animation: fadeSlideDown 0.25s ease-out forwards;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.distribution-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.distribution-title strong {
    font-size: 0.95rem;
    color: #ffc800;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.distribution-sub {
    font-size: 0.78rem;
    color: #888888;
}

.btn-icon-close {
    background: transparent;
    border: 1px solid #333333;
    color: #888888;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-icon-close:hover {
    color: #ffffff;
    border-color: #666666;
    background: rgba(255, 255, 255, 0.05);
}

.team-distribution-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.65rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.team-dist-chip {
    background: #141414;
    border: 1px solid #222222;
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.15s ease;
}

.team-dist-chip:hover {
    border-color: #383838;
    background: #1a1a1a;
}

.team-dist-chip.inactive {
    opacity: 0.45;
}

.dist-avatar {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: #262626;
    color: #ffc800;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 200, 0, 0.25);
}

.dist-info {
    flex: 1;
    min-width: 0;
}

.dist-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e5e5e5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dist-progress-bar {
    width: 100%;
    height: 3px;
    background: #262626;
    border-radius: 2px;
    margin-top: 0.3rem;
    overflow: hidden;
}

.dist-progress-fill {
    height: 100%;
    background: #ffc800;
    border-radius: 2px;
}

.dist-count-badge {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.72rem;
    font-weight: 700;
    color: #888888;
    background: #1c1c1c;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    white-space: nowrap;
}

.dist-count-badge.active {
    color: #ffc800;
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.25);
}

/* Toolbar com Busca, Filtros de Status e Alternador de Modos */
.admin-scale-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    background: #0d0d0d;
    border: 1px solid #1c1c1c;
    border-radius: var(--radius-sm, 8px);
    padding: 0.75rem 1rem;
}

.admin-scale-search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 260px;
    flex: 1;
    max-width: 380px;
}

.admin-scale-search-box i {
    position: absolute;
    left: 0.75rem;
    width: 0.95rem;
    height: 0.95rem;
    color: #666666;
    pointer-events: none;
}

.admin-scale-search-box input {
    width: 100%;
    background: #141414;
    border: 1px solid #282828;
    border-radius: var(--radius-pill, 9999px);
    padding: 0.45rem 2rem 0.45rem 2.2rem;
    font-size: 0.82rem;
    color: #ffffff;
    transition: all 0.2s ease;
}

.admin-scale-search-box input:focus {
    border-color: #ffc800;
    outline: none;
    box-shadow: 0 0 10px rgba(255, 200, 0, 0.2);
}

.btn-clear-search {
    position: absolute;
    right: 0.6rem;
    background: transparent;
    border: none;
    color: #888888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
}

.btn-clear-search:hover {
    color: #ffffff;
}

.admin-status-filters {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.filter-status-pill {
    background: #141414;
    border: 1px solid #262626;
    color: #a3a3a3;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-pill, 9999px);
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-status-pill:hover {
    color: #ffffff;
    border-color: #404040;
}

.filter-status-pill.active {
    background: #ffc800;
    color: #000000;
    border-color: #ffc800;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 200, 0, 0.3);
}

.admin-view-mode-toggle {
    display: flex;
    background: #141414;
    border: 1px solid #262626;
    border-radius: 6px;
    padding: 2px;
}

.view-mode-btn {
    background: transparent;
    border: none;
    color: #888888;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.view-mode-btn i {
    width: 0.9rem;
    height: 0.9rem;
}

.view-mode-btn:hover {
    color: #ffffff;
}

.view-mode-btn.active {
    background: #262626;
    color: #ffc800;
    font-weight: 700;
}

/* Container de Escalas e Empty State */
.admin-schedules-container {
    width: 100%;
}

.admin-empty-state-card {
    background: #0d0d0d;
    border: 1px dashed #262626;
    border-radius: var(--radius-md, 12px);
    padding: 3rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.admin-empty-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 200, 0, 0.08);
    border: 1px solid rgba(255, 200, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #ffc800;
}

.admin-empty-icon-wrap i {
    width: 1.75rem;
    height: 1.75rem;
}

.empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.empty-sub {
    font-size: 0.85rem;
    color: #888888;
    max-width: 420px;
}

/* ==========================================================================
   MODO 1: CARDS INTERATIVOS (Aprimoramentos)
   ========================================================================== */

.scale-card-header-center {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.scale-card-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-icon-action {
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 6px;
    background: #141414;
    border: 1px solid #282828;
    color: #a3a3a3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-icon-action i {
    width: 0.9rem;
    height: 0.9rem;
}

.btn-icon-action:hover {
    color: #ffffff;
    border-color: #555555;
    background: #202020;
}

.btn-icon-action.btn-edit-schedule:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #60a5fa;
}

.btn-icon-action.btn-clone-schedule:hover {
    background: rgba(255, 200, 0, 0.2);
    border-color: #ffc800;
    color: #ffc800;
}

.btn-icon-action.btn-delete-schedule:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #f87171;
}

.scale-rel-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.scale-rel-badge i {
    width: 0.75rem;
    height: 0.75rem;
}

.tag-today {
    background: rgba(255, 200, 0, 0.15);
    border: 1px solid rgba(255, 200, 0, 0.45);
    color: #ffc800;
    box-shadow: 0 0 10px rgba(255, 200, 0, 0.25);
}

.tag-tomorrow {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.tag-upcoming {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.tag-future {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

.tag-past {
    background: rgba(100, 116, 139, 0.15);
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: #94a3b8;
}

.scale-card-progress-strip {
    width: 100%;
    height: 3px;
    background: #1c1c1c;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.scale-card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc800, #4ade80);
    border-radius: 2px;
}

.scale-slot-empty {
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 600;
    font-style: italic;
    background: rgba(251, 191, 36, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.scale-assigned-name {
    color: #f3f4f6;
    font-weight: 500;
}

/* ==========================================================================
   CRONOGRAMA DE ESCALAS PROGRAMADAS (EXPANDIDO & SEM LINHA)
   ========================================================================== */

.admin-timeline-wrapper {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 1rem 0;
}

.timeline-line {
    display: none !important;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    width: 100%;
}

@media (max-width: 680px) {
    .timeline-item {
        flex-direction: column;
        gap: 0.85rem;
    }
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    width: 4.8rem;
    z-index: 2;
}

.timeline-date-circle {
    width: 3.85rem;
    height: 3.85rem;
    border-radius: 50%;
    background: #000000;
    border: 2px solid #ffc800;
    box-shadow: 0 0 14px rgba(255, 200, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item:hover .timeline-date-circle {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 200, 0, 0.55);
}

.tl-day {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.tl-month {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.68rem;
    font-weight: 800;
    color: #ffc800;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.tl-rel-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
    text-align: center;
    white-space: nowrap;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.timeline-card {
    flex: 1;
    min-width: 0;
    background: #0c0c0e;
    border: 1px solid #1c1c20;
    border-radius: 12px;
    padding: 1.35rem 1.65rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
    transition: all 0.2s ease;
}

.timeline-card:hover {
    border-color: #2e2e36;
    background: #101014;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.timeline-header-main {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.timeline-cult-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.timeline-weekday {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.timeline-date-num {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.8rem;
    color: #a1a1aa;
    background: #18181b;
    border: 1px solid #27272a;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-weight: 600;
}

.timeline-cov-info {
    display: flex;
    align-items: center;
}

.timeline-cov-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.22rem 0.65rem;
    border-radius: 4px;
}

.timeline-cov-badge i {
    width: 0.9rem;
    height: 0.9rem;
}

.timeline-cov-badge.complete {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.timeline-cov-badge.pending {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.timeline-card-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.scale-card-progress-strip {
    width: 100%;
    height: 2px;
    background: #1a1a1e;
    border-radius: 2px;
    overflow: hidden;
    margin: 0.5rem 0 1rem 0;
}

.scale-card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc800, #4ade80);
    border-radius: 2px;
}

.timeline-depts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (max-width: 1024px) {
    .timeline-depts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .timeline-depts-grid {
        grid-template-columns: 1fr;
    }
}

.timeline-dept-card {
    background: #121215;
    border: 1px solid #1f1f24;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 72px;
    transition: all 0.15s ease;
}

.timeline-dept-card:hover {
    border-color: #33333d;
    background: #17171c;
}

.timeline-dept-card.is-empty {
    border: 1px dashed rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.02);
}

.tl-dept-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tl-dept-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tl-member-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    padding: 0.05rem 0;
}

.tl-member-name {
    word-break: break-word;
}

.tl-vago-badge {
    font-size: 0.76rem;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.22);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    width: fit-content;
}

.training-obs {
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffc800;
    background: rgba(255, 200, 0, 0.12);
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 200, 0, 0.3);
    white-space: nowrap;
    margin-left: auto;
}

/* ==========================================================================
   MODAL DE DUPLICAÇÃO / CLONAGEM DE ESCALAS
   ========================================================================== */

.badge-period {
    background: rgba(255, 200, 0, 0.15);
    color: #ffc800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
}

.btn-yellow {
    background: #ffc800;
    color: #000000;
    border: 1px solid #ffc800;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-yellow:hover {
    background: #e6b400;
    border-color: #e6b400;
    box-shadow: 0 0 16px rgba(255, 200, 0, 0.4);
    transform: translateY(-1px);
}





/* ==========================================================================
   EXTENSÕES ESPECÍFICAS DO MINISTÉRIO DE LOUVOR
   ========================================================================== */

/* Cores Departamentais dos Instrumentos */
:root {
    --dept-teclado: #0284c7;
    --dept-baixo: #7c3aed;
    --dept-violao: #d97706;
    --dept-guitarra: #e11d48;
    --dept-bateria: #059669;
    --dept-sax: #ca8a04;
    --dept-vocal: #db2777;
}

.dot-teclado { background: var(--dept-teclado) !important; box-shadow: 0 0 8px rgba(2, 132, 199, 0.7); }
.dot-baixo { background: var(--dept-baixo) !important; box-shadow: 0 0 8px rgba(124, 58, 237, 0.7); }
.dot-violao { background: var(--dept-violao) !important; box-shadow: 0 0 8px rgba(217, 119, 6, 0.7); }
.dot-guitarra { background: var(--dept-guitarra) !important; box-shadow: 0 0 8px rgba(225, 29, 72, 0.7); }
.dot-bateria { background: var(--dept-bateria) !important; box-shadow: 0 0 8px rgba(5, 150, 105, 0.7); }
.dot-sax { background: var(--dept-sax) !important; box-shadow: 0 0 8px rgba(202, 138, 4, 0.7); }
.dot-vocal { background: var(--dept-vocal) !important; box-shadow: 0 0 8px rgba(219, 39, 119, 0.7); }

/* Dropdown Seletor de Mês no Admin */
.month-select-dropdown {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    padding: 0.15rem 0.4rem;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.month-select-dropdown:hover {
    color: var(--text-yellow);
}

.month-select-dropdown option {
    background: #0e1628;
    color: #f8fafc;
    font-weight: 600;
    padding: 0.3rem;
}

/* Custom Multiselect para Vocais */
.custom-multiselect {
    position: relative;
    width: 100%;
}

.multiselect-trigger {
    width: 100%;
    background: rgba(14, 22, 40, 0.75);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
    outline: none;
    min-height: 42px;
}

.multiselect-trigger:focus,
.custom-multiselect.open .multiselect-trigger {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px var(--border-glow);
}

.multiselect-trigger::after {
    content: '';
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform var(--transition-fast);
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.custom-multiselect.open .multiselect-trigger::after {
    transform: rotate(-135deg);
}

.multiselect-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #0e1628;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    max-height: 220px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: var(--shadow-lg);
    padding: 0.35rem 0;
}

.custom-multiselect.open .multiselect-options {
    display: block;
}

.multiselect-option {
    padding: 0.55rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-color);
    transition: background var(--transition-fast);
}

.multiselect-option:hover {
    background: var(--card-bg-hover);
    color: var(--text-yellow);
}

.multiselect-option input[type="checkbox"] {
    cursor: pointer;
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent-blue-light);
    margin: 0;
}

/* Header de Abas do Admin */
.admin-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-tabs-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
}

/* Modo de Exportação PDF Paisagem */
body.pdf-export-mode {
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

body.pdf-export-mode .app-header, 
body.pdf-export-mode .btn, 
body.pdf-export-mode .escala-header-container,
body.pdf-export-mode .search-results-banner,
body.pdf-export-mode .calendar-legend,
body.pdf-export-mode .summary-actions,
body.pdf-export-mode .app-nav,
body.pdf-export-mode .toast-container,
body.pdf-export-mode .admin-sched-card-actions {
    display: none !important;
}

body.pdf-export-mode .app-main {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
}

body.pdf-export-mode .scale-wrapper {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    background-color: #ffffff !important;
    padding: 4px 8px !important;
    box-sizing: border-box !important;
}

body.pdf-export-mode .print-only-header {
    display: block !important;
    margin-bottom: 1rem !important;
}

body.pdf-export-mode .print-header-layout {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
    background: #0f172a !important;
    border-left: 6px solid #2563eb !important;
    padding: 1rem 1.5rem !important;
    border-radius: 6px !important;
    margin-bottom: 1rem !important;
    box-sizing: border-box !important;
}

body.pdf-export-mode .print-logo {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    padding: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    flex-shrink: 0 !important;
}

body.pdf-export-mode .print-header-brand {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

body.pdf-export-mode .print-header-text h2 {
    font-size: 15pt !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
    margin: 0 0 3px 0 !important;
    color: #ffffff !important;
}

body.pdf-export-mode .print-header-text p {
    font-size: 9pt !important;
    color: #94a3b8 !important;
    margin: 0 !important;
}

body.pdf-export-mode .print-header-meta {
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

body.pdf-export-mode .print-meta-item {
    display: flex !important;
    flex-direction: column !important;
}

body.pdf-export-mode .print-meta-label {
    font-size: 7.5pt !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
}

body.pdf-export-mode .print-meta-value {
    font-size: 9pt !important;
    font-weight: 700 !important;
    color: #38bdf8 !important;
}

body.pdf-export-mode .timeline-item {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 12px !important;
}

body.pdf-export-mode .timeline-card {
    background: #ffffff !important;
    border: none !important;
    color: #0f172a !important;
}

body.pdf-export-mode .timeline-dept-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

body.pdf-export-mode .tl-member-name {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.pdf-export-mode .tl-vago-badge {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border: 1px solid #fecaca !important;
}

body.pdf-export-mode .timeline-weekday {
    color: #0f172a !important;
}

body.pdf-export-mode .timeline-date-num {
    color: #2563eb !important;
}

body.pdf-export-mode .timeline-date-circle {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

body.pdf-export-mode .tl-day {
    color: #ffffff !important;
}

body.pdf-export-mode .tl-month {
    color: #38bdf8 !important;
}

body.pdf-export-mode .scale-minister-spotlight {
    background: #fffbeb !important;
    border: 1px solid #fcd34d !important;
    color: #78350f !important;
}

body.pdf-export-mode .minister-spotlight-crown {
    background: #f59e0b !important;
    color: #ffffff !important;
}

body.pdf-export-mode .minister-spotlight-name {
    color: #92400e !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

body.pdf-export-mode .badge-minister-destaque {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border-color: #fde68a !important;
}

/* ==========================================================================
   DESTAQUE: MINISTRO(A) DE LOUVOR & CATEGORIA DE MINISTROS
   ========================================================================== */

/* 1. Card Spotlight / Destaque do Ministro na Escala Pública e no Admin Timeline */
.scale-minister-spotlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16) 0%, rgba(245, 158, 11, 0.08) 50%, rgba(14, 22, 40, 0.85) 100%);
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 4px 20px -2px rgba(251, 191, 36, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.scale-minister-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, #f59e0b, transparent);
}

.scale-minister-spotlight:hover {
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 6px 24px -2px rgba(251, 191, 36, 0.32);
    transform: translateY(-1px);
}

.minister-spotlight-crown {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #080c16;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.4);
    flex-shrink: 0;
}

.minister-spotlight-crown i,
.minister-spotlight-crown svg {
    width: 1.35rem;
    height: 1.35rem;
}

.minister-spotlight-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex-grow: 1;
}

.minister-spotlight-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fbbf24;
}

.badge-minister-destaque {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fde047;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
}

.minister-spotlight-name {
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #ffffff;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.minister-spotlight-name .sparkle-char {
    color: #fbbf24;
    font-size: 0.95rem;
}

/* 2. Seção do Ministro no Formulário de Agendamento (Admin) */
.sched-minister-section {
    background: rgba(251, 191, 36, 0.04);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    margin-bottom: 1.5rem;
}

.sched-minister-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sched-minister-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.sched-minister-title h4 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.minister-section-sub {
    margin: 0.15rem 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge-minister-highlight-tag {
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-pill);
}

.badge-minister-avail-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.badge-minister-avail-status.is-available {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.45);
}

.minister-alert-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    color: #fef08a;
    font-size: 0.84rem;
    animation: fadeIn 0.3s ease;
}

.minister-sparkle-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #fbbf24;
    flex-shrink: 0;
}

.minister-alert-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.minister-alert-content strong {
    color: #ffffff;
    font-size: 0.88rem;
}

.minister-alert-content span {
    font-size: 0.78rem;
    color: #fde68a;
}

.dept-card-minister {
    border-color: rgba(251, 191, 36, 0.35) !important;
    background: rgba(251, 191, 36, 0.05) !important;
}

.select-minister-highlight {
    border-color: rgba(251, 191, 36, 0.4) !important;
    background-color: rgba(14, 22, 40, 0.95) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.select-minister-highlight:focus {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25) !important;
}

/* 3. Badge de Ministro de Louvor na Tabela de Integrantes */
.badge-minister-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    margin-left: 0.4rem;
    vertical-align: middle;
}

.badge-minister-tag i,
.badge-minister-tag svg {
    width: 0.85rem;
    height: 0.85rem;
}

