/* ==========================================================================
   CONFIGURAÇÕES GERAIS E VARIÁVEIS CSS
   ========================================================================== */
:root {
    --primary: #DAA520;
    --primary-dark: #b8860b;
    --nav-blue: #010b33;
    --bg-dark: #0a0e1a;
    --glass: rgba(255, 255, 255, 0.98);
    --text-main: #202124;
    --text-muted: #666;
    --cyan-bright: #00D9FF;
    --green-lime: #39FF14;
    --max-width: 1600px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: linear-gradient(rgba(10, 14, 26, 0.8), rgba(10, 14, 26, 0.8)),
                url('img/FundoJuninoPro.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    height: 70px;
    background: var(--nav-blue);
    display: flex;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    max-height: 65px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: var(--transition);
    text-transform: uppercase;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

/* ==========================================================================
   DASHBOARD LAYOUT
   ========================================================================== */
.main-content {
    flex: 1;
    padding: 25px;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ==========================================================================
   CARDS & HEADERS (UX FIX)
   ========================================================================== */
.glass-card {
    background: var(--glass);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.card-header {
    background: var(--primary);
    padding: 12px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.card-header h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    white-space: nowrap;
}

/* Search Box UX Fix */
.search-container {
    flex: 1;
    max-width: 350px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.search-container i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==========================================================================
   TABLES
   ========================================================================== */
.table-wrapper {
    overflow-x: auto;
    max-height: 400px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid #eee;
    position: sticky;
    top: 0;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

tr:hover {
    background: rgba(218, 165, 32, 0.05);
}

.btn-view {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-view:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ==========================================================================
   CALENDAR
   ========================================================================== */
.calendar-column {
    height: 100%;
}

.iframe-container {
    flex: 1;
    min-height: 600px;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   DETAIL PAGE UX
   ========================================================================== */
.detail-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

.detail-header-optimized {
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-header-optimized h1 {
    font-size: 1.5rem;
    margin: 0;
}

.detail-header-optimized p {
    margin: 0;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    opacity: 0.9;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.info-card h3 {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    display: inline-block;
}

.info-item {
    margin-bottom: 15px;
}

.info-item label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* ==========================================================================
   FOOTER PREMIUM JUNINOPRO — COMPACTO
   ========================================================================== */

.main-footer {
    background: var(--bg-dark);
    padding: 14px 16px;          /* ↓ menos altura */
    margin-top: auto;

    border-top: 2px solid rgba(212, 175, 55, 0.8);
    box-shadow: 0 -6px 18px rgba(212, 175, 55, 0.12);
}

/* CONTAINER */
.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;                   /* ↓ menos espaço horizontal */
}

/* LOGO */
.footer-logo {
    max-height: 32px;            /* ↓ ligeiramente menor */
    flex-shrink: 0;
    filter: drop-shadow(0px 3px 8px rgba(0,0,0,0.4));
}

/* BLOCO CENTRAL */
.footer-info {
    display: flex;
    flex-direction: column;
    text-align: center;

    font-size: 0.72rem;
    line-height: 0.45;           /* ↓ ENTRELINHA MÍNIMA */
    gap: 2px;                    /* ↓ controle fino vertical */

    color: rgba(255,255,255,0.92);
}

/* TEXTO MENOR */
.footer-info p {
    font-size: 0.55rem;          /* ↑ legível, porém compacto */
    margin: 0;                   /* <<< REMOVE ESPAÇO EXTRA */
    padding: 0;
    opacity: 0.55;
    color: #eeeeee;
}

.footer-info span {
    opacity: 1;
}

.footer-info strong {
    color: #ffffff;
    font-weight: 600;
}

/* REDES */
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;                   /* ↓ menos distância entre ícones */
}

/* ICONES */
.footer-social a {
    color: white;
    font-size: 1.25rem;          /* ↓ ligeiramente menor */
    opacity: 0.85;
    transition: 0.25s ease;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: #d4af37;
}

/* WHATSAPP */
.whatsapp-3d img {
    width: 34px;                 /* ↓ reduz altura total */
    height: 34px;
    filter: drop-shadow(0px 3px 6px rgba(0,0,0,0.5));
    transition: 0.25s ease;
}

.whatsapp-3d img:hover {
    transform: scale(1.1) rotate(-5deg);
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;               /* ↓ mais compacto no mobile */
    }

    .footer-logo {
        max-height: 42px;
    }

    .footer-info {
        line-height: 1.05;
    }
}
