/* ============================================================================
   SISTEMA DE ALUGUÉIS - ESTILO MASTER (V8.0 - LUXURY & WHITE LABEL)
   ============================================================================ */

/* --- PALETA DE CORES (VARIÁVEIS GLOBAIS) --- */
:root {
    /* Estrutura */
    --bg-body: #121212; 
    --bg-input: #252525;
    --border: #333333;

    /* Camadas Customizáveis (White Label) */
    --bg-sidebar-custom: #0a0a0a;  
    --bg-panel: #1e1e1e;           
    --bg-card: #1e1e1e;            
    --bg-modal: #1e1e1e;           

    /* Tipografia */
    --text-main: #e0e0e0;          
    --text-muted: #a0a0a0;         
    --text-title: #d4af37;         

    /* Identidade */
    --petroleum: #00334e;          
    --petroleum-hover: #004569; 
    --gold: #d4af37;               
    --gold-hover: #b59025;      
    
    /* Status */
    --red-dark: #8b0000; 
    --red-light: #c0392b;        
    --score-good: #27ae60;      
    --score-avg: #f39c12;        
    --score-bad: #c0392b;        

    /* UX */
    --success-bg: rgba(39, 174, 96, 0.15); 
    --success-text: #27ae60; 
    --danger-bg: rgba(192, 57, 43, 0.15); 
    --danger-text: #c0392b;

    /* Toggle */
    --toggle-bg: #333; 
    --toggle-sun: #fff; 
    --toggle-moon: #555;

    /* Layout */
    --header-height: 60px;
    
    /* KANBAN */
    --k-todo-bg: #00334e;        
    --k-todo-text: #ffffff;
    --k-doing-bg: #d4af37;       
    --k-doing-text: #121212;     
    --k-done-bg: #27ae60;        
    --k-done-text: #ffffff;
}

/* --- MODO CLARO --- */
body.light-mode {
    --bg-body: #f4f6f9; 
    --bg-sidebar-custom: #ffffff; 
    --bg-panel: #ffffff; 
    --bg-card: #ffffff;
    --bg-modal: #ffffff;
    --bg-input: #f8f9fa;
    --border: #e0e0e0;
    --text-main: #2c3e50; 
    --text-muted: #666666;
    --text-title: #00334e;
    --toggle-bg: #e0e0e0; 
    --toggle-sun: #aaa; 
    --toggle-moon: #333;
    --success-bg: #d4edda; 
    --success-text: #155724; 
    --danger-bg: #f8d7da; 
    --danger-text: #721c24;
    
    /* Kanban Light Padrão */
    --k-todo-bg: #004569; 
    --k-doing-bg: #f39c12; 
    --k-doing-text: #ffffff; 
    --k-done-bg: #27ae60;
}

/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */
body.protanopia, body.deuteranopia {
    --petroleum: #0072B2; --petroleum-hover: #005f94;
    --gold: #F0E442; --gold-hover: #d1c52b;
    --text-title: #F0E442;
    --score-good: #56B4E9; --score-bad: #D55E00; --red-light: #D55E00;
    --success-text: #005f94; --danger-text: #D55E00;
    --k-todo-bg: #0072B2; --k-doing-bg: #F0E442; --k-done-bg: #56B4E9;
}
body.tritanopia {
    --petroleum: #004d40; --petroleum-hover: #00352c;
    --gold: #FFC107; --score-good: #009E73; --text-title: #FFC107;
    --score-bad: #D55E00; --red-light: #D55E00;
    --k-todo-bg: #004d40; --k-doing-bg: #FFC107; --k-done-bg: #009E73;
}
body.achromatopsia { filter: grayscale(100%); }
body.high-contrast {
    --bg-body: #000000; --bg-sidebar-custom: #000000; --bg-panel: #000000;
    --bg-card: #000000; --bg-modal: #000000;
    --bg-input: #000000; --border: #FFFFFF; --text-main: #FFFFFF;
    --text-muted: #dddddd; --text-title: #FFFF00;
    --petroleum: #FFFF00; --petroleum-hover: #e6e600;
    --gold: #00FF00; --score-good: #00FF00; --score-bad: #FF00FF; --red-light: #FF00FF;
    --k-todo-bg: #333; --k-todo-text: #fff; 
    --k-doing-bg: #555; --k-doing-text: #fff; 
    --k-done-bg: #000; --k-done-text: #fff;
}
body.high-contrast .btn { color: #000 !important; font-weight: 900; border: 2px solid #fff; }
body.high-contrast .panel, body.high-contrast .card, body.high-contrast .modal-content { border: 2px solid #fff; }
body.high-contrast input, body.high-contrast select, body.high-contrast textarea { border: 2px solid #fff; color: #fff; }
body.high-contrast .status-pendente, body.high-contrast .status-pago { color: #000 !important; font-weight: bold; border: 1px solid #fff; }

/* ==========================================================================
   LAYOUT GERAL
   ========================================================================== */
.top-bar { display: flex; justify-content: flex-end; padding: 0 0 20px 0; margin-bottom: 10px; }
.header-tools { display: flex; align-items: center; gap: 15px; background: var(--bg-panel); padding: 8px 15px; border-radius: 30px; border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

/* Language Dropdown */
.custom-dropdown { position: relative; width: 130px; font-family: 'Plus Jakarta Sans', sans-serif; user-select: none; z-index: 1000; }
.selected-lang { background: transparent; border: 1px solid var(--gold); border-radius: 20px; padding: 5px 12px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: all 0.3s ease; color: var(--gold); font-weight: 700; font-size: 0.85rem; height: 32px; box-sizing: border-box; }
.selected-lang:hover { background: var(--gold); color: var(--bg-body); }
.flag-circle { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; margin-right: 8px; }
.arrow-down { font-size: 0.6rem; margin-left: 5px; transition: transform 0.3s; }
.lang-options { position: absolute; top: 110%; left: 0; width: 100%; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px; list-style: none; padding: 5px; margin: 0; box-shadow: 0 5px 20px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1001; }
.lang-options.show { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-options li { display: flex; align-items: center; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--text-main); font-size: 0.85rem; }
.lang-options li:hover { background: var(--bg-input); color: var(--gold); }
.lang-options li img { margin-right: 10px; }

.header-access-btn { background: transparent; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.header-access-btn:hover { background: var(--gold); color: var(--bg-panel); transform: scale(1.1); }

/* Access Panel */
.access-panel { position: fixed; top: 0; right: 0; width: 300px; height: 100vh; background-color: var(--bg-panel); border-left: 1px solid var(--border); box-shadow: -5px 0 20px rgba(0,0,0,0.5); z-index: 10000; transform: translateX(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.access-panel.visible { transform: translateX(0); }
.access-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.access-header h3 { margin: 0; color: var(--gold); font-size: 1.2rem; text-transform: uppercase; }
.access-header button { background: none; border: none; color: var(--text-main); font-size: 2rem; cursor: pointer; }
.access-content { padding: 20px; overflow-y: auto; }
.access-group { margin-bottom: 25px; }

/* BODY & LOGIN */
body { font-family: 'Plus Jakarta Sans', sans-serif; margin: 0; padding: 0; background-color: var(--bg-body); color: var(--text-main); display: flex; height: 100vh; font-weight: 500; transition: background-color 0.3s; overflow-x: hidden; }
#login-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-body); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.login-box { background: var(--bg-panel); padding: 40px; border-radius: 8px; border: 1px solid var(--gold); width: 100%; max-width: 350px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 2; }
.login-logo-container { margin-bottom: 20px; height: 80px; display: flex; align-items: center; justify-content: center; }
.login-logo-img { max-height: 100%; max-width: 100%; object-fit: contain; }
.login-logo-icon { font-size: 3rem; display: block; }
.login-title { color: var(--gold); margin-bottom: 30px; font-weight: 800; font-size: 1.5rem; text-transform: uppercase; }
.login-developer-info { position: absolute; bottom: 30px; width: 100%; text-align: center; color: var(--text-muted); font-size: 0.85rem; z-index: 1; }
.login-developer-info p { margin: 0; line-height: 1.6; }
.login-developer-info a { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 0.3s; margin: 0 5px; }
.login-developer-info a:hover { color: var(--gold); }
.dev-divider { color: var(--border); margin: 0 3px; }

/* ============================================================================
   SIDEBAR & NAV
   ============================================================================ */
#mobile-header { display: none; position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); background-color: var(--bg-sidebar-custom); border-bottom: 1px solid var(--border); z-index: 20; align-items: center; justify-content: space-between; padding: 0 20px; box-sizing: border-box; }
.mobile-menu-btn { background: none; border: none; color: var(--gold); font-size: 1.8rem; cursor: pointer; }

aside { 
    width: 260px; 
    background-color: var(--bg-sidebar-custom); 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    border-right: 1px solid var(--border); 
    box-shadow: 4px 0 10px rgba(0,0,0,0.05); 
    z-index: 30; 
    transition: transform 0.3s; 
    height: 100vh;
    overflow: hidden; 
}

#sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 25; backdrop-filter: blur(2px); }

.sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.theme-switch-wrapper { display: flex; align-items: center; }
.theme-switch { display: inline-block; height: 26px; position: relative; width: 54px; }
.theme-switch input { display:none; }
.slider { background-color: var(--toggle-bg); bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; border-radius: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); }
.slider:before { background-color: #fff; bottom: 3px; content: ""; height: 20px; left: 3px; position: absolute; transition: .4s; width: 20px; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); z-index: 2; }
input:checked + .slider:before { transform: translateX(28px); }
.slider svg { width: 14px; height: 14px; z-index: 1; transition: fill 0.3s; }
.icon-sun { fill: var(--toggle-sun); } .icon-moon { fill: var(--toggle-moon); }

aside .logo-container { padding: 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; min-height: 80px; transition: all 0.3s; flex-shrink: 0; }
aside .logo-container.logo-action-admin:hover { background-color: rgba(212, 175, 55, 0.15); cursor: pointer; border-bottom: 1px solid var(--gold); }
aside .logo-container.logo-action-home:hover { background-color: var(--bg-input); cursor: pointer; opacity: 0.9; }
.logo-img { width: 50px; height: 50px; object-fit: contain; border-radius: 4px; }
.logo-text { font-size: 1.1rem; font-weight: 800; color: var(--gold); text-transform: uppercase; line-height: 1.2; word-break: break-word; }

aside nav { 
    flex: 1; 
    margin-top: 10px; 
    overflow-y: auto; 
    padding-bottom: 10px;
    scrollbar-width: thin; 
    scrollbar-color: var(--border) transparent;
}
aside nav::-webkit-scrollbar { width: 4px; }
aside nav::-webkit-scrollbar-thumb { background-color: var(--border); border-radius: 4px; }

aside nav button { display: block; width: 100%; text-align: left; padding: 18px 25px; background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.95rem; transition: 0.3s; border-left: 3px solid transparent; font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif; }
aside nav button:hover { background-color: var(--bg-input); color: var(--gold); }
aside nav button.active { background-color: var(--bg-input); color: var(--gold); border-left: 3px solid var(--gold); }

.sidebar-footer {
    flex-shrink: 0; 
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.user-profile-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--petroleum), var(--petroleum-hover));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    border: 2px solid var(--bg-sidebar-custom);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.user-details { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.user-name { font-size: 0.9rem; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.btn-logout-icon {
    background: none;
    border: none;
    color: var(--red-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-logout-icon:hover { background: rgba(192, 57, 43, 0.15); color: #e74c3c; }

.nff-footer { text-align: center; font-size: 0.7rem; color: var(--text-muted); opacity: 0.7; transition: opacity 0.3s; border-top: 1px dashed var(--border); padding-top: 10px; }
.nff-footer:hover { opacity: 1; }
.nff-brand { display: block; font-weight: 700; color: var(--gold); margin-top: 2px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; }

body.light-mode .sidebar-footer { background-color: #f8f9fa; }
body.light-mode .user-profile-card { background: #fff; border-color: #e0e0e0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
body.light-mode .user-avatar { color: #fff; }

/* CONTENT ELEMENTS */
main { flex: 1; padding: 40px; overflow-y: auto; background-color: var(--bg-body); transition: background 0.3s; position: relative; }
#app-content { display: flex; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
#app-content.visible { opacity: 1; pointer-events: all; }

h2 { color: var(--text-title); border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-top: 0; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
h4.form-section-title { color: var(--text-title); margin-top: 30px; margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 5px; font-size: 1rem; font-weight: 700; text-transform: uppercase; }

.panel { background: var(--bg-panel); padding: 25px; border-radius: 4px; border: 1px solid var(--border); margin-bottom: 25px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-bottom: 30px; }
.card { background: var(--bg-card); padding: 25px; border-radius: 4px; border: 1px solid var(--border); text-align: center; transition: transform 0.3s; position: relative; overflow: hidden; cursor: pointer; }
.card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.card h3 { margin: 0; font-size: 1.8rem; color: var(--text-title); font-weight: 800; }
.card p { color: var(--text-muted); margin: 10px 0 0; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; }
.card-alert { border-left: 4px solid var(--red-light); } 
.card-alert h3 { color: var(--red-light); }
.alert-box-dashboard { background-color: var(--danger-bg); border: 1px solid var(--red-light); padding: 15px; border-radius: 4px; margin-bottom: 20px; color: var(--text-main); }

.search-panel { margin-bottom: 20px; padding: 15px; display: flex; align-items: center; gap: 15px; border-left: 4px solid var(--gold); background: var(--bg-panel); border-radius: 6px; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.search-icon-style { font-size: 1.5rem; opacity: 0.5; transition: 0.3s; color: var(--text-main); }
.modern-select { width: 100%; padding: 10px; border-radius: 4px; margin-top: 5px; font-size: 1rem; outline: none; transition: all 0.3s ease; background-color: var(--bg-input); color: var(--text-main); border: 1px solid var(--border); }
.modern-select:focus { border-color: var(--gold); box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
.search-label { font-weight: bold; font-size: 0.9rem; color: var(--text-muted); }

.form-row { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.col-1 { flex: 1; min-width: 80px; } .col-2 { flex: 2; min-width: 150px; } .col-3 { flex: 3; min-width: 250px; } .col-full { width: 100%; }
label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--text-muted); font-size: 0.85rem; }
input, select, textarea { width: 100%; padding: 12px 15px; background-color: var(--bg-input); border: 1px solid var(--border); border-radius: 2px; color: var(--text-main); font-size: 1rem; font-family: 'Plus Jakarta Sans', sans-serif; transition: border 0.3s; box-sizing: border-box; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
input[readonly], input:disabled { opacity: 0.7; cursor: not-allowed; }
::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }
body.light-mode ::-webkit-calendar-picker-indicator { filter: invert(0); }

.box-morador-diferente { background-color: rgba(212, 175, 55, 0.05); border: 1px dashed var(--gold); padding: 15px; border-radius: 6px; margin-bottom: 15px; margin-top: 10px; transition: all 0.3s ease; }

.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--bg-panel); border: 1px solid var(--border); transition: background 0.3s; min-width: 1000px; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background-color: var(--bg-input); color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
tr:hover { background-color: var(--bg-input); }
td { color: var(--text-main); font-size: 0.95rem; }

/* Botões */
.btn { padding: 10px 25px; border: none; border-radius: 2px; cursor: pointer; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; text-decoration: none; min-height: 44px; }
.btn-petroleum { background-color: var(--petroleum); border: 1px solid var(--petroleum); color: #fff; }
.btn-petroleum:hover { background-color: var(--petroleum-hover); }
.btn-primary { background-color: var(--gold); color: var(--bg-body); }
.btn-primary:hover { background-color: var(--gold-hover); }
.btn-danger { background-color: var(--bg-input); color: var(--red-light); border: 1px solid var(--red-light); }
.btn-danger:hover { background-color: var(--red-light); color: #fff; }
.btn-gradient-red { background: linear-gradient(135deg, var(--red-dark), var(--red-light)); color: #fff; }
.btn-info { background-color: var(--bg-input); border: 1px solid var(--text-muted); color: var(--text-main); }
.btn-info:hover { border-color: var(--petroleum); color: var(--petroleum); }
.btn-success { background-color: var(--score-good); color: #fff; border: 1px solid var(--score-good); }
.btn-sm { padding: 6px 15px; font-size: 0.75rem; min-height: 32px; }
.btn-filter { background-color: var(--bg-input); color: var(--text-muted); border: 1px solid var(--border); }
.btn-filter:hover { border-color: var(--gold); color: var(--gold); }
.btn-filter.active { background-color: var(--gold); color: var(--bg-body); border-color: var(--gold); }

/* --- NOVO ESTILO BOTÃO WHATSAPP (MODERNO E ESPAÇADO) --- */
.btn-whatsapp { 
    background: linear-gradient(135deg, #25D366, #128C7E); 
    color: white; 
    border: none; 
    padding: 6px 12px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 0.9rem; 
    transition: transform 0.2s, box-shadow 0.2s; 
    margin-left: 12px; /* Espaço do número */
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 5px; /* Espaço entre texto/ícone dentro do botão, se houver */
}
.btn-whatsapp:hover { 
    transform: scale(1.05); 
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4); 
}
.btn-whatsapp svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.status-pendente { color: var(--danger-text); font-weight: 700; background: var(--danger-bg); padding: 4px 8px; border-radius: 4px; }
.status-pago { color: var(--success-text); font-weight: 700; background: var(--success-bg); padding: 4px 8px; border-radius: 4px; }
.tempo-tag { background: var(--petroleum); color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }

.charts-row { display: flex; gap: 25px; margin-bottom: 30px; flex-wrap: wrap; }
.chart-container { flex: 1; min-width: 300px; background: var(--bg-panel); padding: 25px; border-radius: 4px; border: 1px solid var(--border); }
.chart-bar-container { display: flex; align-items: flex-end; height: 160px; gap: 20px; padding-top: 20px; border-bottom: 1px solid var(--border); }
.chart-bar { width: 100%; transition: height 0.5s; position: relative; border-radius: 2px 2px 0 0; opacity: 0.8; }
.chart-bar:hover { opacity: 1; }
.chart-bar span { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); font-size: 0.8rem; color: var(--text-main); font-weight: 700; }
.chart-labels { display: flex; gap: 20px; margin-top: 15px; }
.chart-label { width: 100%; text-align: center; font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.hidden { display: none !important; }
.chart-doughnut-wrapper { display: flex; align-items: center; justify-content: center; gap: 30px; height: 180px; padding-top: 10px; }

/* MODAL / EXTRAS */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(5px); }
.modal-content { background: var(--bg-modal); padding: 30px; border-radius: 2px; width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto; border: 1px solid var(--gold); box-shadow: 0 0 30px rgba(0,0,0,0.8); box-sizing: border-box; }
.modal-header { border-bottom: 1px solid var(--border); margin-bottom: 20px; padding-bottom: 10px; display: flex; justify-content: space-between; }
.modal-header h3 { color: var(--text-title); margin: 0; font-weight: 800; }
.close-modal { background: none; border: none; font-size: 2rem; color: var(--text-muted); cursor: pointer; }
.stats-box { background: var(--bg-input); padding: 15px; border-radius: 4px; border: 1px solid var(--border); margin-bottom: 15px; display: flex; justify-content: space-around; text-align: center; }
.stat-item h5 { margin: 0; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.stat-item span { font-size: 1.5rem; font-weight: 800; color: var(--gold); display: block; margin-top: 5px; }
.history-log { max-height: 200px; overflow-y: auto; text-align: left; background: rgba(0,0,0,0.2); padding: 10px; border: 1px solid var(--border); margin-top: 15px; border-radius: 4px; }

/* KANBAN */
.kanban-board { display: flex; gap: 20px; height: calc(100vh - 200px); overflow-x: auto; padding-bottom: 10px; }
.kanban-column { flex: 1; min-width: 300px; background: var(--bg-input); border-radius: 8px; border: 1px solid var(--border); display: flex; flex-direction: column; }
.kanban-column.drag-over { border: 2px dashed var(--gold); background-color: rgba(212, 175, 55, 0.1); } 

.k-header { padding: 15px; margin: 0; border-bottom: 1px solid var(--border); font-size: 1rem; text-transform: uppercase; text-align: center; border-radius: 8px 8px 0 0; font-weight: 800; letter-spacing: 1px; }
.k-header.k-todo { background: var(--k-todo-bg); color: var(--k-todo-text); }
.k-header.k-doing { background: var(--k-doing-bg); color: var(--k-doing-text); }
.k-header.k-done { background: var(--k-done-bg); color: var(--k-done-text); }
.k-content { padding: 10px; flex: 1; overflow-y: auto; }
.task-card { background: var(--bg-panel); border: 1px solid var(--border); padding: 15px; border-radius: 6px; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.2s; border-left: 4px solid var(--gold); position: relative; }
.task-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.task-time { font-size: 0.8rem; color: var(--gold); font-weight: bold; display: block; margin-bottom: 5px; }
.task-link { font-size: 0.75rem; background: var(--bg-input); padding: 2px 6px; border-radius: 4px; margin-top: 5px; display: inline-block; color: var(--text-muted); }
.task-actions { margin-top: 10px; display: flex; gap: 5px; justify-content: flex-end; }

/* CONFIG & PAINEL ADMIN (Luxuoso) */
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; }
.color-item { 
    background: rgba(255,255,255,0.03); 
    padding: 20px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.05); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    transition: all 0.3s ease;
}
.color-item:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.05);
}
.color-item label { font-size: 0.85rem; color: var(--text-main); margin-bottom: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.color-controls { display: flex; align-items: center; gap: 12px; width: 100%; }
.color-circle-input { 
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    border: 2px solid var(--border); 
    padding: 0; 
    background: none; 
    cursor: pointer; 
    overflow: hidden; 
    flex-shrink: 0;
    transition: transform 0.2s;
}
.color-circle-input:hover { transform: scale(1.1); border-color: var(--text-main); }
.color-circle-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-circle-input::-webkit-color-swatch { border: none; border-radius: 50%; }
.color-hex-input { 
    flex: 1; 
    padding: 10px; 
    border: 1px solid var(--border); 
    border-radius: 6px; 
    background: var(--bg-input); 
    color: var(--text-main); 
    font-family: monospace; 
    text-transform: uppercase; 
    text-align: center; 
    font-weight: 600;
}

.notification-box { position: fixed; bottom: 20px; right: 20px; background: var(--bg-panel); color: var(--text-main); border-left: 6px solid var(--red-light); padding: 20px; border-radius: 8px; box-shadow: 0 5px 25px rgba(0,0,0,0.3); z-index: 9999; display: flex; align-items: center; gap: 15px; animation: slideIn 0.5s ease-out; max-width: 400px; border: 1px solid var(--border); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.notif-icon { font-size: 2rem; }
.notif-content strong { display: block; font-size: 1.1rem; margin-bottom: 4px; color: var(--gold); }
.notif-content p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.notification-box button { background: var(--red-light); color: white; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-weight: bold; }
.custom-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; z-index: 2000; visibility: hidden; opacity: 0; transition: opacity 0.3s; }
.custom-overlay.active { visibility: visible; opacity: 1; }
.custom-box { background: var(--bg-panel); padding: 25px; border-radius: 4px; width: 400px; max-width: 90%; text-align: center; border: 1px solid var(--gold); box-shadow: 0 0 40px rgba(0,0,0,0.5); transform: translateY(-20px); transition: transform 0.3s; }
.custom-overlay.active .custom-box { transform: translateY(0); }
.custom-title { font-size: 1.3rem; font-weight: 800; color: var(--gold); margin-bottom: 10px; text-transform: uppercase; }
.custom-msg { color: var(--text-main); margin-bottom: 25px; }
.custom-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.custom-input { width: 100%; margin-bottom: 20px; text-align: center; }

@media (max-width: 768px) {
    #mobile-header { display: flex; }
    aside { position: fixed; top: 0; left: 0; height: 100%; transform: translateX(-100%); transition: transform 0.3s ease-in-out; }
    aside.open { transform: translateX(0); }
    #sidebar-overlay { display: block; visibility: hidden; opacity: 0; transition: 0.3s; }
    #sidebar-overlay.active { visibility: visible; opacity: 1; }
    main { padding: 20px 15px; margin-top: var(--header-height); width: 100%; box-sizing: border-box; }
    .header-with-floater { flex-direction: column; align-items: flex-start; padding-right: 0; margin-top: 50px; gap: 15px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 15px; }
    .col-1, .col-2, .col-3, .col-full { width: 100%; min-width: 100%; }
    .modal-content { width: 95%; padding: 20px; margin: 10px; max-height: 85vh; }
    .top-bar { position: fixed; top: 0; left: 0; width: 100%; height: 60px; z-index: 25; display: flex; justify-content: center; align-items: center; padding: 0; margin: 0; pointer-events: none; }
    .header-tools { pointer-events: auto; background: transparent; border: none; box-shadow: none; gap: 15px; padding: 0; }
    .selected-lang { background: var(--bg-sidebar-custom); height: 36px; font-size: 0.8rem; }
    .header-access-btn { background: var(--bg-sidebar-custom); width: 36px; height: 36px; }
    .lang-options { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); width: 160px; }
    .access-panel { width: 85%; }
}