/* DATA: 13/03/2026 */
/* ============================================
   THEME MAÇÔNICO LUXO - MODERNO E SOFISTICADO
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary: #0a2f6c;        /* Azul royal profundo */
    --primary-dark: #051b3d;
    --secondary: #c5a028;       /* Dourado clássico */
    --secondary-light: #dbb54b;
    --dark: #1a1e2b;
    --gray: #6c757d;
    --light: #f8f9fa;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --border-radius: 20px;
    --box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M50 0 L100 50 L50 100 L0 50 Z" fill="none" stroke="%23c5a028" stroke-width="0.5" opacity="0.1"/></svg>');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fb;
    background-image: var(--pattern);
    background-size: 60px 60px;
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #0a1f3a 100%);
    color: white;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-bottom: 3px solid var(--secondary);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #ffffff !important; /* Branco forçado */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.logo .symbol {
    color: var(--secondary);
    font-size: 2.8rem;
    filter: drop-shadow(0 0 8px rgba(197,160,40,0.5));
}

.logo .brand-name {
    color: #ffffff !important; /* Força o nome da marca em branco */
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    color: white;
    text-decoration: none;
    border-radius: 40px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(197,160,40,0.2);
}

nav ul li a:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197,160,40,0.4);
    border-color: transparent;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 60px rgba(0,0,0,0.15);
}

.empresa-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border-left: 6px solid var(--primary);
    transition: var(--transition);
    position: relative;
}

.empresa-card::after {
    content: '☉';
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--secondary);
    opacity: 0.1;
    font-weight: 900;
}

.empresa-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--secondary);
}

/* Formulários modernos */
.form-container {
    max-width: 900px;
    margin: 3rem auto;
}

.form-moderno {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.form-moderno::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 0 0 5px rgba(197,160,40,0.15);
}

.slug-preview {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    border-radius: 50px;
    padding: 0 1.5rem;
    border: 2px solid #e9ecef;
}

.slug-preview span {
    color: var(--gray);
    font-size: 0.95rem;
    margin-right: 0.5rem;
}

.slug-preview input {
    border: none;
    background: transparent;
    padding-left: 0;
    flex: 1;
}

.slug-preview input:focus {
    box-shadow: none;
    border: none;
}

.slug-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.slug-status.success {
    color: var(--success);
}

.slug-status.error {
    color: var(--danger);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(10,47,108,0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(10,47,108,0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #b08c20);
    color: var(--dark);
    box-shadow: 0 8px 20px rgba(197,160,40,0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #b08c20, var(--secondary));
    box-shadow: 0 15px 30px rgba(197,160,40,0.5);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* Alertas */
.alert {
    padding: 1.2rem 2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-weight: 500;
    border-left: 6px solid;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border-left-color: var(--success);
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: var(--danger);
}

/* Tabelas */
.table {
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border-collapse: collapse;
}

.table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.2rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #f1f3f5;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Perfil */
.profile-container {
    max-width: 1000px;
    margin: 3rem auto;
}

.profile-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.profile-card h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 0.75rem;
    display: inline-block;
    font-size: 1.8rem;
}

.copy-link {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.copy-link input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    background: var(--light);
    font-family: 'Inter', sans-serif;
}

.inline-form {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.inline-form input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
}

/* Grid de empresas */
.empresas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

/* Abas */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2.5rem 0 1.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.tab {
    padding: 0.8rem 2rem;
    background: var(--light);
    border-radius: 40px 40px 0 0;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-bottom: none;
}

.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--secondary);
}

.tab .badge {
    background: rgba(0,0,0,0.1);
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tab.active .badge {
    background: rgba(255,255,255,0.2);
    color: white;
}

.tab-content {
    background: white;
    padding: 2.5rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.success {
    background: var(--success);
    color: white;
}

.badge.warning {
    background: var(--warning);
    color: var(--dark);
}

.badge.secondary {
    background: var(--gray);
    color: white;
}

.empty-message {
    text-align: center;
    color: var(--gray);
    padding: 3rem;
    background: var(--light);
    border-radius: var(--border-radius);
    font-style: italic;
}

/* Hero Section (para index) */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a2f6c, #0a1f3a); /* fundo escuro */
    border-radius: var(--border-radius);
    margin: 2rem 0;
    position: relative;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 1rem auto;
    color: #ffffff;
}

.hero .btn {
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

/* Rodapé */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 4px solid var(--secondary);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: var(--secondary);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.footer-symbols {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.footer-text {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-motto {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.footer-icons {
    font-size: 1.5rem;
    color: var(--secondary);
}

/* Responsividade */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full {
        grid-column: span 1;
    }
    
    nav ul {
        flex-direction: column;
        align-items: stretch;
    }
    
    nav ul li a {
        display: block;
        text-align: center;
    }
    
    .empresas-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .tab {
        border-radius: 40px;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* ============================================
   MENU LATERAL PROFISSIONAL - COM ROLAGEM ELEGANTE
   ============================================ */

/* Botão hamburger */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
    border: 2px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    transform: scale(1.05);
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--primary);
}

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1002;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.2s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #0c1f3a 0%, #0a1a30 100%);
    color: white;
    z-index: 1003;
    transition: left 0.25s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    border-right: 3px solid var(--secondary);
}

.sidebar.active {
    left: 0;
}

/* Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(197,160,40,0.2);
    flex-shrink: 0; /* não encolhe */
}

.sidebar-header .logo {
    font-size: 1rem;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.sidebar-header .logo .symbol {
    font-size: 1.6rem;
    color: var(--secondary);
    margin-right: 0.2rem;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.4rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.sidebar-close:hover {
    color: white;
    background: rgba(197,160,40,0.2);
}

/* Usuário */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(197,160,40,0.2);
    background: rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--secondary);
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile-link {
    font-size: 0.7rem;
    color: var(--secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

/* Navegação - com rolagem elegante */
.sidebar-nav {
    flex: 1;
    overflow-y: auto; /* permite rolagem quando necessário */
    padding: 0.5rem 0;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--secondary) rgba(255,255,255,0.1); /* Firefox */
}

/* Webkit (Chrome, Safari, Edge) */
.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-light);
}

.nav-section {
    margin: 0.2rem 0;
}

.nav-section-title {
    padding: 0.3rem 1.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--secondary);
}

.nav-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-items li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1.2rem 0.5rem 1.8rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-items li a i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    color: var(--secondary);
}

.nav-items li a:hover {
    background: linear-gradient(90deg, rgba(197,160,40,0.15), transparent);
    border-left-color: var(--secondary);
    padding-left: 2.2rem;
}

.logout-item a {
    color: #ffaaaa !important;
}

.logout-item a i {
    color: #ffaaaa !important;
}

.logout-item a:hover {
    background: rgba(220,53,69,0.15) !important;
    border-left-color: #dc3545 !important;
}

/* Footer */
.sidebar-footer {
    padding: 0.8rem;
    border-top: 1px solid rgba(197,160,40,0.2);
    text-align: center;
    background: rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.sidebar-symbols {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
    color: var(--secondary);
    opacity: 0.6;
}

/* Ajuste conteúdo principal */
.main-content {
    margin-left: 0;
    transition: margin-left 0.25s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Desktop */
@media (min-width: 769px) {
    .sidebar {
        left: 0;
        width: 250px;
    }
    .sidebar-toggle {
        display: none !important;
    }
    .sidebar-overlay {
        display: none !important;
    }
    .main-content {
        margin-left: 250px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
    }
    .main-content {
        margin-left: 0;
        padding-top: 70px;
    }
    .sidebar.active .sidebar-nav {
        overflow-y: auto; /* rolagem no mobile também */
    }
}
/* DATA: 13/03/2026 */