/* Guarujá Host OS - Sistema de Design CSS */

/* 1. Variáveis de Tema (Harmonia HSL) */
:root {
    /* Tema Escuro (Padrão) */
    --bg-app: #0f172a; /* Slate 900 */
    --bg-sidebar: #1e293b; /* Slate 800 */
    --bg-card: rgba(30, 41, 59, 0.7); /* Translúcido */
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Cores de Ação (Vibrantes) */
    --primary: #06b6d4; /* Cyan 500 - Reflete o mar/água do Guarujá */
    --primary-hover: #0891b2;
    --primary-glow: rgba(6, 182, 212, 0.2);
    
    --secondary: #6366f1; /* Indigo 500 - Conectividade */
    --success: #10b981; /* Emerald 500 */
    --warning: #f59e0b; /* Amber 500 */
    --danger: #ef4444; /* Rose 500 */
    
    /* Gradientes */
    --grad-1: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --grad-2: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --grad-3: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-4: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    
    /* Badges de canais */
    --color-airbnb: #ff5a5f;
    --color-booking: #003580;
    --color-vrbo: #002f6c;
    --color-direct: #06b6d4;
}

/* Tema Claro (Opcional - Ativado via Classe) */
.light-theme {
    --bg-app: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary-glow: rgba(6, 182, 212, 0.1);
}

/* 2. Reset e Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

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

h1, h2, h3, h4, h5, h6, .logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* Scrollbar Moderno */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 3. Layout Estrutural (App Container) */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: transform var(--transition-normal), width var(--transition-normal);
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.logo-icon {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo-text .highlight {
    color: var(--primary);
    font-weight: 800;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
}

.nav-group {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    transition: all var(--transition-fast);
}

.nav-item .nav-link-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-item i {
    width: 18px;
    height: 18px;
}

.submenu-arrow {
    width: 14px !important;
    height: 14px !important;
    transition: transform var(--transition-fast);
}

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

.nav-group.active .nav-item.main-item {
    color: var(--primary);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
}

.nav-group.active .submenu-arrow {
    transform: rotate(180deg);
}

/* Itens de Submenu */
.submenu-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 12px;
    border-left: 1px dashed rgba(255, 255, 255, 0.1);
    margin-left: 24px;
    margin-top: 4px;
}

.nav-group.active .submenu-items {
    max-height: 250px;
}

.submenu-item {
    background: transparent;
    border: none;
    text-align: left;
    color: var(--text-muted);
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.submenu-item:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.03);
}

.submenu-item.active {
    color: var(--primary);
    background-color: var(--primary-glow);
    font-weight: 600;
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-logout {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.btn-logout:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Área Principal */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100vh;
}

.top-bar {
    height: 80px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

.page-title {
    font-size: 1.75rem;
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-indicator {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.status-indicator.online {
    color: var(--success);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 var(--success);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.content-wrapper {
    padding: 40px;
    flex: 1;
}

/* 4. Abas da SPA (Abas Dinâmicas) */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

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

/* 5. Painéis e Cartões (Glassmorphism & Gradients) */
.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    backdrop-filter: blur(12px);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.panel-card:hover {
    background: var(--bg-card-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Grid de Estatísticas (Dashboard) */
.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    border-radius: var(--border-radius);
    padding: 24px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.card-gradient-1 { background: var(--grad-1); }
.card-gradient-2 { background: var(--grad-2); }
.card-gradient-3 { background: var(--grad-3); }
.card-gradient-4 { background: var(--grad-4); }

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.85;
    margin-bottom: 12px;
}

.stat-header i {
    width: 20px;
    height: 20px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trend {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}

.trend.positive { color: #10b981; background: rgba(16, 185, 129, 0.2); padding: 2px 6px; border-radius: 4px; }

/* Dashboard Detail Layout */
.dashboard-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* 6. Componentes e Formulários Gerais */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.btn-primary, .btn-secondary, .btn-success, .btn-danger {
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-1px); }

.btn-secondary { background-color: rgba(255, 255, 255, 0.05); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.1); }

.btn-success { background-color: var(--success); color: white; }
.btn-success:hover { background-color: #059669; }

.btn-danger { background-color: var(--danger); color: white; }
.btn-danger:hover { background-color: #dc2626; }

/* Tabela de dados moderna */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th, .data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 600;
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Badges e Status */
.badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}
.badge-airbnb { background-color: var(--color-airbnb); }
.badge-booking { background-color: var(--color-booking); }
.badge-vrbo { background-color: var(--color-vrbo); }
.badge-direct { background-color: var(--color-direct); }

.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-status.success { background-color: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-status.warning { background-color: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-status.danger { background-color: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-status.info { background-color: rgba(6, 182, 212, 0.15); color: var(--primary); }

/* Progress bar */
.channels-progress-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.channel-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.channel-name {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-icon-airbnb { color: var(--color-airbnb); }
.channel-icon-booking { color: var(--color-booking); }
.channel-icon-vrbo { color: var(--color-vrbo); }
.channel-icon-direct { color: var(--color-direct); }

.progress-bar-container {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
}
.airbnb-bar { background-color: var(--color-airbnb); }
.booking-bar { background-color: var(--color-booking); }
.vrbo-bar { background-color: var(--color-vrbo); }
.direct-bar { background-color: var(--color-direct); }

/* 7. Grade de Imóveis (Properties) */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.property-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.property-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-card-beach {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.property-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.property-card-title {
    font-size: 1.15rem;
    color: var(--text-main);
}

.property-card-address {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.feature-tag {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.property-card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.price-label { font-size: 0.75rem; color: var(--text-muted); }
.price-value { font-size: 1.25rem; font-weight: 700; color: var(--primary); }

.property-card-actions {
    display: flex;
    gap: 8px;
    padding: 0 20px 20px 20px;
}

.property-card-actions button {
    flex: 1;
}

/* 8. Módulo de Faxina & App Simulador */
.cleaning-workflow-layout {
    display: flex;
    gap: 24px;
    min-height: 500px;
}

.cleanings-list-full {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cleaning-card-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cleaning-card-item:hover, .cleaning-card-item.active {
    background: rgba(6, 182, 212, 0.05);
    border-color: var(--primary);
}

.cleaning-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cleaning-card-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.flex-1 { flex: 1.2; }

/* Simulador Móvel */
.mobile-layout-sim {
    flex: 0.8;
    background: #000 !important;
    border: 8px solid #2e2e3a !important;
    border-radius: 40px !important;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
}

.sim-header {
    background: #1e1e2e;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom: 1px solid #2d2d3d;
}

.sim-header i { width: 14px; height: 14px; }

.sim-body {
    flex: 1;
    background: #11111b;
    padding: 20px;
    overflow-y: auto;
    color: #e0e0e0;
}

.sim-property-name {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 4px;
}

.sim-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.no-selection-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

.no-selection-message p { margin-top: 12px; font-size: 0.9rem; }

.large-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    opacity: 0.5;
}

.sim-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sim-checklist-item input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--success);
}

.media-upload-zone {
    border: 2px dashed rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
    transition: border var(--transition-fast);
}

.media-upload-zone:hover {
    border-color: var(--primary);
}

.media-upload-zone i {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.uploaded-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.media-thumbnail-wrapper {
    position: relative;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
}

.media-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0,0,0,0.7);
    padding: 2px;
    border-radius: 2px;
    color: white;
    font-size: 0.6rem;
}

/* 9. Pesquisa Inteligente de Mercado (Pricing) */
.pricing-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

.suggestion-highlight-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sug-title {
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.suggested-price-huge {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.adjustments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.adjustment-item {
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    border-radius: 6px;
}

.adjustment-impact {
    font-weight: 700;
    color: var(--success);
}

.competitor-list-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.competitor-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
}

.comp-details {
    display: flex;
    flex-direction: column;
}

.comp-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.comp-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.comp-price-tag {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* 10. Modais Customizados */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: modalSlide 0.3s ease;
}

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

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.btn-close:hover { color: var(--text-main); }

/* Campos de Formulário */
.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control, .form-control-select {
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: border var(--transition-fast);
}

.form-control:focus, .form-control-select:focus {
    border-color: var(--primary);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

.config-section-card {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.config-section-card .subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 12px;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.conditional-fields {
    margin-top: 16px;
    animation: fadeIn var(--transition-fast);
}

.conditional-fields.hidden {
    display: none;
}

.icon-inline {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

/* Switch Toggle Slider */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Construtor de Checklist */
.checklist-builder-list {
    list-style: none;
    margin-bottom: 12px;
    max-height: 150px;
    overflow-y: auto;
}

.checklist-builder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
}

.add-item-row {
    display: flex;
    gap: 8px;
}

/* Integrations specific styles */
.card-title-with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.card-title-with-icon i {
    width: 24px;
    height: 24px;
}

.icon-whatsapp { color: var(--success); }
.icon-lock { color: var(--primary); }
.icon-nf { color: var(--warning); }
.icon-payment { color: var(--secondary); }

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.integration-form {
    margin-bottom: 24px;
}

.form-actions-inline {
    display: flex;
    justify-content: flex-end;
}

.separator-line {
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}

.status-badge-row {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.gateways-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.log-section h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.mini-table {
    max-height: 180px;
    overflow-y: auto;
}

.mini-table .data-table th, .mini-table .data-table td {
    padding: 8px 12px;
    font-size: 0.8rem;
}

/* 11. Adaptações Responsivas / Layout Mobile */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        transform: translateY(-100%);
        position: absolute;
        top: 80px;
        left: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    .sidebar.active {
        transform: translateY(0);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-content {
        height: auto;
        overflow-y: visible;
    }
    
    .top-bar {
        padding: 0 20px;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .dashboard-details-grid {
        grid-template-columns: 1fr;
    }
    
    .cleaning-workflow-layout {
        flex-direction: column;
    }
    
    .mobile-layout-sim {
        width: 100%;
        height: 550px;
        max-width: 360px;
        margin: 0 auto;
    }
    
    .pricing-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .form-row-2, .form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-stats {
        grid-template-columns: 1fr;
    }
    
    .action-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .action-bar button {
        width: 100%;
        justify-content: center;
    }
}
