/* Modern CSS - X-House Futuristic Style */

/* Reset e variáveis CSS */
:root {
    /* Cores Principais Unificadas */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Cores de Texto Padronizadas */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.8);
    
    /* Cores de Fundo */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-alt: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-bg-strong: rgba(255, 255, 255, 0.15);
    
    /* Sombras Padronizadas */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Bordas e Transições */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Tipografia Padronizada */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Cores dos Títulos */
    --title-color: #ffffff;
    --title-color-hover: #f0f0f0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 70px; /* Espaço para o menu fixo - AJUSTADO */
    overflow-x: hidden;
}

/* Sistema de Títulos Padronizado */
.page-header {
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.page-title {
    color: var(--title-color);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-title i {
    color: var(--title-color);
    font-size: var(--font-size-3xl);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: var(--font-size-lg);
    font-weight: 400;
    margin: 0;
}

/* Cards Padronizados */
.unified-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    overflow: hidden;
}

.unified-card:hover {
    /* Removido transform para melhorar usabilidade mobile */
    box-shadow: var(--shadow-xl);
    background: var(--bg-card-hover);
}

.unified-card-header {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem;
}

.unified-card-body {
    padding: 1.5rem;
}

/* Formulários Padronizados */
.unified-form {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

/* Desabilitar backdrop-filter no mobile para evitar overlay branco durante scroll */
@media (max-width: 768px) {
    .unified-form {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }
}

.unified-form .form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: var(--font-size-sm);
}

.unified-form .form-control {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.unified-form .form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Botões Padronizados */
.btn-unified {
    background: var(--bg-gradient);
    border: none;
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-unified:hover {
    /* Removido transform para melhorar usabilidade mobile */
    box-shadow: var(--shadow-lg);
    color: var(--text-white);
}

.btn-unified-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-unified-secondary:hover {
    background: var(--glass-bg-strong);
    color: var(--text-primary);
}


/* Container principal */
.container-fluid {
    padding: 0rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Navbar moderno */
/* ============================================
   NOTA: Regras do navbar foram movidas para menu.php
   para centralizar toda a lógica e evitar conflitos.
   Este arquivo mantém apenas regras complementares.
   ============================================ */

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Cards modernos */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    /* Removido transform para melhorar usabilidade mobile */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Widgets do dashboard - X-House Style */
.dashboard-widget-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 1rem;
    box-shadow: var(--shadow-xl);
}

.dashboard-widget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: var(--transition);
}

.dashboard-widget-card:hover::before {
    opacity: 1;
}

.dashboard-widget-card:hover {
    /* Removido transform para melhorar usabilidade mobile */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.dashboard-widget-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    line-height: 1.2;
    word-wrap: break-word;
    max-width: 100%;
    padding: 0 0.5rem;
}

.dashboard-widget-card .card-text {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
    word-break: keep-all;
    max-width: 100%;
}

.dashboard-widget-card .card-body {
    padding: 1rem !important;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Layout específico para widgets com ícones à direita */
.dashboard-widget-card .card-body .d-flex {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem;
}

.dashboard-widget-card .d-flex {
    gap: 0.25rem;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.dashboard-widget-card .flex-grow-1 {
    min-width: 0;
    flex: 1;
    overflow: visible;
    margin-right: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

/* Ajustes específicos para títulos e valores */
.dashboard-widget-card .flex-grow-1 .card-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 0.4rem !important;
    opacity: 0.95 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    padding: 0 !important;
}

.dashboard-widget-card .flex-grow-1 .card-text {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
}

/* Ícones dos widgets */
.dashboard-widget-card .flex-shrink-0 {
    flex-shrink: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: 1.5rem !important;
    opacity: 0.75 !important;
    margin-left: 0.5rem !important;
}

/* Forçar layout correto para widgets com flexbox */
.dashboard-widget-card .card-body > .d-flex {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
}

/* Garantir que o conteúdo não quebre linha mas seja totalmente visível */
.dashboard-widget-card .flex-grow-1 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* Ajuste final para evitar quebra de linha mas manter conteúdo visível */
.dashboard-widget-card .flex-grow-1 .card-title,
.dashboard-widget-card .flex-grow-1 .card-text {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
}

/* Garantir que todas as colunas tenham a mesma largura */
.row .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

/* Garantir que todos os widgets tenham a mesma altura */
.dashboard-widget-card {
    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
}

/* Ajuste específico para widgets monetários */
.dashboard-widget-card.widget-success .flex-grow-1,
.dashboard-widget-card.widget-danger .flex-grow-1 {
    flex: 1.2;
    min-width: 0;
}



/* Variações de cores para widgets - X-House Style */
.widget-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.widget-warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.widget-danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.widget-info {
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.widget-purple {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.bg-purple {
    background: linear-gradient(135deg, #6f42c1, #8e44ad) !important;
}

/* Formulários modernos */
.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botões modernos */
.btn {
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

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

.btn-primary:hover {
    /* Removido transform para melhorar usabilidade mobile */
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: var(--white);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #00d4ff);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #38ef7d);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #f093fb);
    color: var(--white);
}

/* Tabelas modernas */
.table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.table tbody td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    /* Removido transform: scale para melhorar usabilidade mobile */
}

/* Badges modernos */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.bg-success {
    background: linear-gradient(135deg, var(--success-color), #00d4ff) !important;
}

.bg-danger {
    background: linear-gradient(135deg, var(--danger-color), #f093fb) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #38ef7d) !important;
    color: var(--dark-color) !important;
}

/* Alertas modernos */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.1), rgba(240, 147, 251, 0.1));
    color: #e74c3c;
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 212, 255, 0.1));
    color: #27ae60;
    border-left: 4px solid var(--success-color);
}

/* Modal moderno */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1.5rem 2rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Login moderno */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-80px); /* sobe 50px */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden; /* impede rolagem */
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    overflow: hidden; /* impede rolagem */
}

.login-logo {
    margin-bottom: 2rem;
}

.login-logo img {
    max-height: 80px;
    width: auto;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0.5rem 1rem;
    }
    
    .dashboard-widget-card {
        margin-bottom: 1rem;
        min-height: 100px;
    }
    
    .dashboard-widget-card .flex-grow-1 .card-title {
        font-size: 0.8rem !important;
    }
    
    .dashboard-widget-card .flex-grow-1 .card-text {
        font-size: 1.3rem !important;
    }
    
    .dashboard-widget-card .flex-shrink-0 {
        font-size: 1.4rem !important;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .table-responsive {
        border-radius: var(--border-radius);
        overflow: hidden;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    } 
}

@media (max-width: 576px) {
    body {
        padding-top: 70px !important; /* Menor padding para mobile - FORÇADO */
    }
    
    .login-card {
        padding: 2rem;
        margin: 1rem;
        margin-top: 0px; /* Ajuste o valor conforme necessário */
}
    }
    
    .dashboard-widget-card {
        height: 90px !important;
        min-height: 90px !important;
        max-height: 90px !important;
    }
    
    .dashboard-widget-card .flex-grow-1 .card-text {
        font-size: 1.2rem !important;
    }
    
    .dashboard-widget-card.widget-success .flex-grow-1 .card-text,
    .dashboard-widget-card.widget-danger .flex-grow-1 .card-text {
        font-size: 1.1rem !important;
    }
    
    .dashboard-widget-card .flex-grow-1 .card-title {
        font-size: 0.7rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .dashboard-widget-card .flex-shrink-0 {
        font-size: 1.2rem !important;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Utilitários */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.shadow-glow {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

/* X-House Dashboard Preview Styles */
.dashboard-preview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 380px;
    height: fit-content;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
}

.status-online {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 16px;
    text-align: center;
    color: white;
}

.metric-card i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Dashboard Chart */
.dashboard-chart {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 16px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.chart-header h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.chart-period {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 60px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.6));
    border-radius: 2px 2px 0 0;
    min-height: 8px;
    transition: all 0.3s ease;
}

.bar:hover {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.8));
}

/* Dashboard Automation */
.dashboard-automation {
    display: flex;
    gap: 12px;
}

.automation-item {
    flex: 1;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--border-radius);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 600;
}

.automation-item i {
    font-size: 0.875rem;
}

/* Enhanced Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    /* Removido transform para melhorar usabilidade mobile */
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: var(--bg-gradient);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Enhanced Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--bg-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    /* Removido transform para melhorar usabilidade mobile */
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Enhanced Tables */
.table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table thead th {
    background: var(--bg-gradient);
    color: white;
    border: none;
    padding: 1.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
    /* Removido transform: scale para melhorar usabilidade mobile */
}

/* Modern Table Styles - X-House Design */
.modern-table-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.modern-table-row {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.modern-table-row:hover {
    /* Removido transform para melhorar usabilidade mobile */
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.3);
}

.row-item {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.row-item:first-child {
    flex: 2;
}

.row-item:last-child {
    flex: 0 0 auto;
}

.item-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-subtitle {
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-date {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.item-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.meta-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-info {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.status-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    /* Removido transform: scale para melhorar usabilidade mobile */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-table-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .row-item {
        width: 100%;
        flex: none;
    }
    
    .row-item:last-child {
        align-self: flex-end;
    }
    
    .item-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .item-title {
        font-size: 0.9rem;
    }
    
    .item-subtitle {
        font-size: 0.75rem;
    }
}

/* Property-specific styles */
.item-description {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
    font-style: italic;
}

.property-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

.action-danger:hover {
    background: #ef4444 !important;
    color: white !important;
}

/* Property status badge */
.property-row {
    position: relative;
}

.property-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
    z-index: 10;
}

.property-status-badge.active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.property-status-badge i {
    font-size: 0.8rem;
}

/* Booking-specific styles */
.booking-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success-color);
    text-align: center;
}

/* Booking totals horizontal layout */
.booking-totals {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.total-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.total-item:hover {
    /* Removido transform para melhorar usabilidade mobile */
    box-shadow: var(--shadow-sm);
}

.total-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.total-content {
    flex: 1;
    min-width: 0;
}

.total-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.total-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.total-detail {
    font-size: 0.8rem;
    color: var(--text-light);
}

.total-detail.danger {
    color: var(--danger-color);
}

/* Responsive adjustments for totals */
@media (max-width: 768px) {
    .booking-totals {
        flex-direction: column;
        gap: 12px;
    }
    
    .total-item {
        padding: 12px;
    }
    
    .total-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .total-number {
        font-size: 1.3rem;
    }
} 