/*
 * Estilos Personalizados Premium - Gerenciador de Atas Sindicais
 * Inspirado em design moderno de SaaS com foco em usabilidade e sofisticação
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Paleta de Cores Harmônicas (Base HSL) */
    --color-primary: #1e40af;       /* Azul Escuro Slate */
    --color-primary-light: #3b82f6; /* Azul Claro Brilhante */
    --color-secondary: #0f172a;     /* Cinza Escuro Charcoal */
    --color-accent: #0d9488;        /* Teal / Azul-Verde */
    --color-success: #10b981;       /* Verde Esmeralda */
    --color-warning: #f59e0b;       /* Amber / Laranja-Amarelo */
    --color-danger: #ef4444;        /* Vermelho Suave */
    
    /* Backgrounds e Superfícies */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    
    /* Efeitos */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
    --border-radius: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: #334155;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: 600;
}

/* Navbar Estilo Glassmorphism */
.navbar-custom {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-smooth);
    z-index: 1030;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary) !important;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: #475569 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary) !important;
    background-color: rgba(59, 130, 246, 0.08);
}

/* Cartões com Design Premium */
.card-premium {
    background-color: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.2);
}

.card-header-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

/* Dashboard Widgets */
.widget-stat {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.widget-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.widget-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Badges e Status */
.badge-custom {
    padding: 0.45em 0.8em;
    font-weight: 600;
    border-radius: 30px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-rascunho { background-color: rgba(71, 85, 105, 0.1); color: #475569; }
.badge-assinaturas { background-color: rgba(59, 130, 246, 0.1); color: #2563eb; }
.badge-encerrada { background-color: rgba(13, 148, 136, 0.1); color: #0f766e; }
.badge-homologada { background-color: rgba(16, 185, 129, 0.1); color: #047857; }

/* Botões Modernos */
.btn-premium {
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    transition: var(--transition-smooth);
    border: none;
}

.btn-premium-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
}

.btn-premium-primary:hover {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
    opacity: 0.95;
    color: white;
}

.btn-premium-accent {
    background: linear-gradient(135deg, var(--color-accent), #0f766e);
    color: white;
}

.btn-premium-accent:hover {
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.35);
    opacity: 0.95;
    color: white;
}

/* Tela de Login */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgba(26, 54, 93, 0.95) 0%, rgba(15, 23, 42, 1) 90%);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    padding: 2.5rem;
}

/* Painel de Comentários / Chat Interno */
.comments-sidebar {
    background: var(--bg-card);
    border-left: 1px solid #e2e8f0;
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
    display: flex;
    flex-direction: column;
}

.comment-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.comment-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.comment-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.comment-input-area {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: white;
}

/* Alerta de Pendência Ativa no Dashboard */
.pending-alert-banner {
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    border-left: 5px solid var(--color-warning);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    animation: pulseGlow 3s infinite ease-in-out;
}

/* Caixa de Destaque da IA */
.ai-summary-box {
    background: linear-gradient(135deg, rgba(236, 254, 255, 0.9), rgba(224, 242, 254, 0.5));
    border-left: 5px solid var(--color-accent);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Estilo para Tabela de Auditoria */
.table-responsive-custom {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: white;
}

.table-custom th {
    background-color: #f1f5f9;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #475569;
    padding: 1rem;
}

.table-custom td {
    padding: 1rem;
    vertical-align: middle;
}

/* Quórum / Lista de Presença */
.quorum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.quorum-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.quorum-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: white;
}

/* Rodapé */
footer {
    background: var(--bg-sidebar);
    color: #94a3b8;
    padding: 1.5rem 0;
    margin-top: auto;
    border-top: 1px solid #1e293b;
}

/* Animações */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 10px rgba(245, 158, 11, 0.05);
    }
    50% {
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
    }
}
