/* =========================================
   DESIGN SYSTEM PREMIUM
   ========================================= */
:root {
    --primary-color: #2D5A27;    
    --secondary-color: #81B214;  
    --accent-color: #E28743;     
    
    /* Cores Premium UI */
    --bg-color: #F5F8F6; /* Cinza esverdeado super claro */
    --sidebar-bg: #152B13; /* Verde ainda mais profundo */
    --card-bg: #FFFFFF;          
    
    --text-main: #2C3E33;        
    --text-muted: #6B7B71;       
    --text-light: #FFFFFF;       
    
    --border-radius: 16px; /* Bordas mais arredondadas (Premium) */
    --border-color: #E5EBE7;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 12px 28px rgba(45, 90, 39, 0.08); /* Sombra colorida sutil */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Animação mais natural */
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================
   TELA DE LOGIN
   ========================================= */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #3d7036 0%, var(--sidebar-bg) 100%);
}

.login-card {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 440px;
    padding: 48px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    max-height: 65px;
    margin-bottom: 24px;
}

.login-header h2 {
    color: var(--primary-color);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 6px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 20px;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 15px;
    transition: var(--transition);
    background-color: #FAFCFB;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: #FFF;
    box-shadow: 0 0 0 4px rgba(129, 178, 20, 0.15);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.error-message {
    color: #D32F2F;
    background-color: #FDECEA;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
    display: none;
    font-weight: 500;
}

/* =========================================
   DASHBOARD / LAYOUT
   ========================================= */
.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.06);
    z-index: 10;
}

/* Solução Premium: Bloco branco no topo da Sidebar */
.logo-container {
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center; /* Centralizado */
    padding: 24px 32px;
    min-height: 90px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    max-height: 50px;
}

.fallback-icon { color: var(--primary-color); font-size: 32px; margin-right: 12px; }
.fallback-text { color: var(--primary-color); font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 32px 20px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-item i { font-size: 22px; }

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}

.nav-item.active {
    background-color: rgba(129, 178, 20, 0.15); /* Fundo verde translúcido */
    color: #A3DF1A; /* Verde neon suave */
    border-left: 4px solid var(--secondary-color);
}

.sidebar-footer { padding: 24px 20px; border-top: 1px solid rgba(255,255,255,0.06); }

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 600;
    transition: var(--transition);
}

.btn-logout:hover {
    background-color: rgba(255, 82, 82, 0.1);
    color: #FF5252;
}

/* Main Content & Header */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-header {
    height: 90px;
    background-color: var(--bg-color); /* Integra ao fundo */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 14px 20px;
    width: 480px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(129, 178, 20, 0.1);
    transform: translateY(-1px);
}

.search-bar i {
    color: var(--text-muted);
    font-size: 20px;
    margin-right: 14px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--text-main);
}

.user-profile { display: flex; align-items: center; gap: 16px; }

.avatar {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.user-info { display: flex; flex-direction: column; }
.user-name { font-weight: 700; font-size: 15px; color: var(--text-main); }
.user-role { font-size: 13px; color: var(--text-muted); }

/* =========================================
   CONTEÚDO PRINCIPAL (WIDGET E CARDS)
   ========================================= */
.content-area {
    padding: 24px 48px 48px;
}

/* Greeting Widget */
.greeting-widget {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
    background-image: linear-gradient(to right, #FFFFFF, #FAFCFB);
}

.greeting-text h1 {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.greeting-text p {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(129, 178, 20, 0.1);
    padding: 12px 24px;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 20px;
}

.time-display i { font-size: 24px; color: var(--secondary-color); }

/* Grid de Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

/* Micro-interações Premium */
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: #F4F7F6;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: var(--transition);
}

.card:hover .card-icon {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.card-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
    transition: var(--transition);
}

.card:hover .card-content h3 { color: var(--primary-color); }

.card-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Grid de Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* Modificado para suportar tag <a> perfeitamente */
a.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none; /* Reset de link */
    color: inherit; /* Reset de link */
    position: relative;
    overflow: hidden;
}

/* Detalhe lateral esquerdo Premium */
a.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

a.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

a.card:hover::before {
    transform: scaleY(1);
}

.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 32px; /* Tamanho para ícones FontAwesome */
}

/* Tratamento especial para ícones SVG embutidos */
.card-icon svg {
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

a.card:hover .card-icon svg {
    transform: scale(1.1);
}

.card-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
    transition: var(--transition);
}

a.card:hover .card-content h3 {
    color: var(--primary-color);
}

.card-content p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================
   ESTILOS DAS CATEGORIAS (FASE 5)
   ========================================= */

.category-section {
    margin-bottom: 24px;
}

.category-title {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.category-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, var(--border-color) 0%, transparent 100%);
    margin: 40px 0;
}

/* =========================================
   EMPTY STATE (SEÇÃO SEM PLANILHAS)
   ========================================= */
.empty-state {
    grid-column: 1 / -1; /* Ocupa a linha toda do grid */
    background-color: transparent;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.empty-state i {
    font-size: 48px;
    color: rgba(107, 123, 113, 0.4); /* Verde acinzentado bem opaco */
}

.empty-state h4 {
    font-size: 17px;
    color: var(--text-main);
    font-weight: 600;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.5;
}

/* =========================================
   VIEWS NATIVAS DA SPA (IFRAMES E MÓDULOS)
   ========================================= */
.view-module {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
}

.view-header {
    height: 70px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 40px;
    gap: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    z-index: 10;
}

.btn-voltar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    transition: var(--transition);
}

.btn-voltar:hover {
    background: var(--bg-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateX(-4px);
}

.view-title {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
}

.view-module iframe {
    flex: 1;
    width: 100%;
    border: none;
    background-color: #fff;
}

/* =========================================
   RE-SKIN: MÓDULO DE EQUIPES CORPORATIVO
   (Transformado de Dark Mode para Light Premium)
   ========================================= */
.equipes-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: var(--bg-color);
}

.equipes-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 32px 48px;
}

.header-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.header-label { font-size: 12px; letter-spacing: 2px; color: var(--primary-color); font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.equipes-header h1 { font-size: 26px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }

.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-box { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 18px; display: flex; align-items: center; gap: 12px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--primary-color); }

.header-btns { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; align-items: center; }
#buscaEquipes { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 16px; color: var(--text-main); font-size: 14px; outline: none; width: 100%; max-width: 320px; font-family: var(--font-family); transition: var(--transition); }
#buscaEquipes:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(129, 178, 20, 0.1); }
#buscaEquipes::placeholder { color: #A0AAB2; }

.btn-eq { border: none; border-radius: 10px; padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 8px; font-family: var(--font-family); }
.btn-edit { background: var(--bg-color); border: 1px solid var(--border-color); color: var(--text-main); }
.btn-edit:hover, .btn-edit.ativo { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.btn-add { background: var(--secondary-color); color: #fff; }
.btn-add:hover { background: #6b9411; }
.btn-save { background: var(--accent-color); color: #fff; }
.btn-save:hover { filter: brightness(0.9); }

.equipes-main { padding: 32px 48px; }
.grid-eq { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* Cards de Equipe */
.card-eq { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-sm); }
.card-eq:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-eq.ativo { background: #FAFCFB; border-width: 2px; transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar-eq { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; border: 2px solid; }
.card-info { flex: 1; min-width: 0; }
.card-nome { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; line-height: 1.3; }
.card-setor { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 4px 10px; display: inline-block; }
.card-total { font-size: 32px; font-weight: 800; flex-shrink: 0; }

.barra-bg { background: var(--bg-color); border-radius: 6px; height: 8px; overflow: hidden; }
.barra-fill { height: 100%; border-radius: 6px; transition: width 0.6s ease; }
.barra-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 8px; }

/* Lista de Membros Interna */
.membros-section { margin-top: 20px; border-top: 1px solid var(--border-color); padding-top: 16px; display: none; }
.card-eq.ativo .membros-section { display: block; }
.membros-titulo { font-size: 12px; color: var(--text-muted); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 12px; }
.membros-lista { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; padding-right: 4px; }
.membro { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--bg-color); font-size: 13.5px; color: var(--text-main); font-weight: 500; border: 1px solid var(--border-color); }
.membro-num { width: 24px; height: 24px; border-radius: 6px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.membro-del { margin-left: auto; background: none; border: none; color: #D32F2F; cursor: pointer; font-size: 16px; padding: 0 4px; display: none; flex-shrink: 0; }

.card-edit-actions { display: none; gap: 10px; margin-top: 16px; }
.card-eq.edit-mode .card-edit-actions { display: flex; flex-wrap: wrap; }
.card-eq.edit-mode .membro-del { display: flex; }

.btn-sm { border: none; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font-family); transition: var(--transition); }
.btn-danger { background: #FFEBEE; color: #D32F2F; border: 1px solid #FFCDD2; }
.btn-danger:hover { background: #D32F2F; color: #fff; }
.btn-primary-sm { background: #E8F5E9; color: var(--primary-color); border: 1px solid #C8E6C9; }
.btn-primary-sm:hover { background: var(--primary-color); color: #fff; }

/* Modal Equipes */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.overlay.open { display: flex; }
.modal { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 32px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 48px rgba(0,0,0,0.1); }
.modal h2 { font-size: 20px; font-weight: 800; color: var(--primary-color); margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; color: var(--text-muted); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; }
.field input { width: 100%; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 14px; color: var(--text-main); font-size: 14px; outline: none; font-family: var(--font-family); transition: var(--transition); }
.field input:focus { border-color: var(--secondary-color); background: #fff; }

.cores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.cor-opt { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: var(--transition); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.cor-opt.sel { border-color: var(--text-main); transform: scale(1.1); }

.modal-btns { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; }
.btn-cancel { background: var(--bg-color); border: 1px solid var(--border-color); color: var(--text-muted); }
.btn-cancel:hover { background: #E0E5E2; color: var(--text-main); }
.btn-confirm { background: var(--primary-color); color: #fff; }
.btn-confirm:hover { background: var(--secondary-color); }

.add-membro-row { display: flex; gap: 10px; margin-top: 10px; }
.add-membro-row input { flex: 1; }
.add-membro-row button { background: var(--secondary-color); border: none; color: #fff; border-radius: 10px; padding: 0 16px; font-size: 20px; cursor: pointer; font-weight: 800; transition: var(--transition); }
.add-membro-row button:hover { background: var(--primary-color); }

.membros-edit-lista { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.mem-edit-item { display: flex; align-items: center; gap: 10px; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 12px; font-size: 14px; color: var(--text-main); font-weight: 500; }
.mem-edit-item button { margin-left: auto; background: none; border: none; color: #D32F2F; cursor: pointer; font-size: 16px; padding: 4px; }

.rodape { margin-top: 32px; padding: 20px 0; border-top: 1px solid var(--border-color); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { border-radius: 24px; padding: 6px 14px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; background: var(--card-bg); transition: var(--transition); }
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip-num { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 800; }

/* =========================================
   RBAC: MÓDULO DE EQUIPES (SOMENTE LEITURA)
   ========================================= */
/* Quando injetada no container, oculta totalmente as ferramentas de edição */
.view-module.readonly-mode .btn-edit,
.view-module.readonly-mode .btn-add,
.view-module.readonly-mode .btn-save,
.view-module.readonly-mode .membro-del,
.view-module.readonly-mode .card-edit-actions {
    display: none !important;
}

/* =========================================
   UI: DASHBOARD CLIMÁTICO NATIVO
   ========================================= */
.clima-wrapper {
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
}

.clima-current-card {
    background: linear-gradient(135deg, var(--primary-color), var(--sidebar-bg));
    border-radius: var(--border-radius);
    padding: 40px;
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

/* Detalhe de fundo no card principal */
.clima-current-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.clima-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.clima-title h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.clima-title p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.clima-icon-huge {
    font-size: 64px;
    color: var(--secondary-color);
}

.clima-body {
    margin: 32px 0;
    position: relative;
    z-index: 2;
}

.clima-body h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 8px;
}

.clima-desc {
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary-color);
}

.clima-footer {
    display: flex;
    gap: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    position: relative;
    z-index: 2;
}

.clima-metric {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clima-metric i {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.7);
}

.clima-metric div {
    display: flex;
    flex-direction: column;
}

.clima-metric span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clima-metric strong {
    font-size: 18px;
    font-weight: 600;
}

/* Cards da Previsão */
.forecast-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.forecast-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.forecast-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.forecast-info {
    flex: 1;
}

.forecast-info h4 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.forecast-info p {
    font-size: 14px;
    color: var(--text-muted);
}

.forecast-temps {
    text-align: right;
}

.temp-max {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.temp-min {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}
