/* 
 * IDENTIDADE VISUAL STRUCTA
 * Estilos complementares seguindo o manual de marca
 */

/* Playfair Display - Logo e Títulos */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Lato e Poppins - Corpo de texto */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Poppins:wght@300;400;500;600&display=swap');

/* Cores oficiais Structa */
:root {
    /* Paleta primária */
    --structa-blue-petroleo: #1F3B4D;
    --structa-gold-champagne: #C9A56D;
    --structa-white-ice: #F6F7F8;
    
    /* Paleta secundária */
    --structa-gray-graphite: #2A2A2A;
    --structa-blue-light: #365C73;
}

/* Logo principal */
.structa-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.structa-logo-icon {
    height: 100%;
    object-fit: contain;
    background: var(--structa-blue-petroleo);
    padding: 8px;
    border-radius: 8px;
}

/* Logo no sidebar com fundo azul-petróleo */
.sidebar-header img {
    background: var(--structa-blue-petroleo) !important;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Logo na página de login com fundo azul-petróleo */
.login-container img,
.auth-logo img {
    background: var(--structa-blue-petroleo) !important;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.structa-logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--structa-blue-petroleo);
}

/* Versões do logo */
.structa-logo-white .structa-logo-text {
    color: var(--structa-white-ice);
}

.structa-logo-gold .structa-logo-text,
.structa-logo-gold .structa-logo-icon {
    filter: sepia(1) saturate(2) hue-rotate(10deg);
}

/* Tipografia hierárquica */
.structa-title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: var(--structa-blue-petroleo);
    line-height: 1.3;
}

.structa-title-large {
    font-size: 32px;
    font-weight: 600;
}

.structa-title-medium {
    font-size: 24px;
    font-weight: 500;
}

.structa-title-small {
    font-size: 18px;
    font-weight: 500;
}

.structa-body-text {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: var(--structa-gray-graphite);
    line-height: 1.6;
}

.structa-body-text-alt {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

/* Elementos de destaque dourados */
.structa-gold-divider {
    width: 60px;
    height: 3px;
    background: var(--structa-gold-champagne);
    margin: 20px 0;
}

.structa-gold-dot {
    width: 8px;
    height: 8px;
    background: var(--structa-gold-champagne);
    border-radius: 50%;
    display: inline-block;
}

.structa-gold-line {
    border-top: 2px solid var(--structa-gold-champagne);
}

/* Badges e etiquetas Structa */
.structa-badge {
    background: var(--structa-gold-champagne);
    color: var(--structa-blue-petroleo);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.structa-badge-outline {
    background: transparent;
    border: 2px solid var(--structa-gold-champagne);
    color: var(--structa-gold-champagne);
}

/* Botões premium */
.btn-structa-premium {
    background: linear-gradient(135deg, var(--structa-gold-champagne) 0%, #b89557 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(201, 165, 109, 0.3);
}

.btn-structa-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 165, 109, 0.4);
}

/* Cards com identidade Structa */
.structa-card {
    background: var(--structa-white-ice);
    border: 1px solid rgba(31, 59, 77, 0.1);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.structa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--structa-gold-champagne);
}

.structa-card-premium {
    border: 2px solid var(--structa-gold-champagne);
    background: linear-gradient(135deg, rgba(201, 165, 109, 0.05) 0%, transparent 100%);
}

/* Ícones com estilo Structa */
.structa-icon {
    color: var(--structa-gold-champagne);
    font-size: 24px;
}

.structa-icon-circle {
    width: 48px;
    height: 48px;
    background: var(--structa-gold-champagne);
    color: var(--structa-blue-petroleo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Backgrounds com gradiente Structa */
.structa-bg-gradient {
    background: linear-gradient(135deg, var(--structa-blue-petroleo) 0%, var(--structa-blue-light) 100%);
}

.structa-bg-gradient-gold {
    background: linear-gradient(135deg, var(--structa-gold-champagne) 0%, #b89557 100%);
}

.structa-bg-overlay {
    position: relative;
}

.structa-bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 59, 77, 0.9) 0%, rgba(54, 92, 115, 0.8) 100%);
    z-index: 0;
}

.structa-bg-overlay > * {
    position: relative;
    z-index: 1;
}

/* Barras de progresso Structa */
.structa-progress {
    height: 8px;
    background: rgba(31, 59, 77, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.structa-progress-bar {
    height: 100%;
    background: var(--structa-gold-champagne);
    transition: width 0.3s ease;
}

/* Separadores decorativos */
.structa-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 32px 0;
}

.structa-divider::before,
.structa-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--structa-gold-champagne);
}

.structa-divider::before {
    margin-right: 16px;
}

.structa-divider::after {
    margin-left: 16px;
}

/* Tooltips Structa */
.structa-tooltip {
    position: relative;
    display: inline-block;
}

.structa-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--structa-blue-petroleo);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* Animações suaves */
.structa-fade-in {
    animation: structaFadeIn 0.5s ease-in;
}

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

.structa-slide-in {
    animation: structaSlideIn 0.5s ease-out;
}

@keyframes structaSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Elementos de assinatura/selo */
.structa-seal {
    width: 80px;
    height: 80px;
    background: var(--structa-gold-champagne);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: white;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(201, 165, 109, 0.4);
}

/* Tabelas com identidade Structa */
.structa-table thead {
    background: var(--structa-blue-petroleo);
    color: white;
}

.structa-table thead th {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.structa-table tbody tr:hover {
    background: rgba(201, 165, 109, 0.05);
}

/* Formulários com identidade */
.structa-input:focus {
    border-color: var(--structa-gold-champagne);
    box-shadow: 0 0 0 3px rgba(201, 165, 109, 0.1);
}

.structa-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--structa-blue-petroleo);
}

/* Margem de proteção do logo (1x altura do T) */
.structa-logo-safe-area {
    padding: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .structa-title-large {
        font-size: 24px;
    }
    
    .structa-title-medium {
        font-size: 20px;
    }
    
    .structa-logo-text {
        font-size: 14px;
        letter-spacing: 1.5px;
    }
}

/* Acessibilidade */
.structa-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Modo escuro (fundo azul-petróleo) */
.structa-dark {
    background: var(--structa-blue-petroleo);
    color: var(--structa-white-ice);
}

.structa-dark .structa-title {
    color: var(--structa-white-ice);
}

.structa-dark .structa-body-text {
    color: rgba(246, 247, 248, 0.9);
}
