/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #66b3ff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-bg: #343a40;
    --sidebar-bg: #2c3e50;
    --sidebar-dark: #1a252f;
    --text-light: #6c757d;
    --text-dark: #495057;
    --border-color: #dee2e6;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f5f7fa;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ESTILOS FRONTEND ===== */

/* Header */
header {
    background: #ffffff !important;
    color: #333;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
}

/* Garantir que o header sempre tenha fundo branco */
header,
header.header,
.header,
body header {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

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

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    font-weight: 500;
}

nav a:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

/* Main content */
main {
    margin: 2rem auto;
}

/* Filtros */
.filtros {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.filtros h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.campo label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.campo input,
.campo select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--white);
}

.campo input:focus,
.campo select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

button,
.btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.025em;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

/* Resultados */
.resultados {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.resultados h2 {
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.sem-resultados {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-500);
    padding: 3rem;
}

/* Grid de imóveis */
.imoveis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.imovel-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.imovel-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.imovel-imagem {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.imovel-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.imovel-card:hover .imovel-imagem img {
    transform: scale(1.1);
}

.tipo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(37, 99, 235, 0.95);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}

.imovel-info {
    padding: 1.5rem;
}

.imovel-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
    font-weight: 700;
    line-height: 1.4;
}

.localizacao {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.preco {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.descricao {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.btn-ver-mais {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.025em;
}

.btn-ver-mais:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Paginação */
.paginacao {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.paginacao a,
.paginacao .atual {
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.2s ease;
    font-weight: 600;
    min-width: 44px;
    text-align: center;
}

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

.paginacao .atual {
    background: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background: var(--gray-800);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Remover efeitos do logotipo do footer */
.footer-logo img,
.admin-logo img,
footer img {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
}

.footer-logo img:hover,
.admin-logo img:hover,
footer img:hover {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    scale: 1 !important;
}

/* ===== ESTILOS ADMIN MODERNO ===== */

.admin-body {
    background: #fafafa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    font-size: 13px;
}

/* Layout Admin Moderno */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Moderno */
.admin-sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.admin-logo {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.admin-logo h1 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.025em;
}

.admin-logo p {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0.25rem 0 0 0;
    font-weight: 500;
}

.admin-nav {
    padding: 0.75rem 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    color: #6b7280;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    margin: 0.125rem 0.75rem;
    border-radius: 6px;
    transition: all 0.15s ease;
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
}

.admin-nav-item svg {
    width: 16px;
    height: 16px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.admin-nav-item:hover {
    background: #f9fafb;
    color: #374151;
}

.admin-nav-item.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

/* Main Content Moderno */
.admin-main {
    flex: 1;
    margin-left: 240px;
    background: #fafafa;
}

/* Header Moderno */
.admin-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.875rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-title {
    margin: 0;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-user-info {
    text-align: right;
}

.admin-user-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.8125rem;
    margin: 0;
}

.admin-user-role {
    font-size: 0.6875rem;
    color: #6b7280;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Content Area Moderno */
.admin-content {
    padding: 1.5rem;
}

/* Dashboard Cards Moderno */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.15s ease;
    position: relative;
}

.dashboard-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dashboard-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.dashboard-card-icon {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.dashboard-card:nth-child(1) .dashboard-card-icon {
    background: #dbeafe;
    color: #2563eb;
}

.dashboard-card:nth-child(2) .dashboard-card-icon {
    background: #d1fae5;
    color: #059669;
}

.dashboard-card:nth-child(3) .dashboard-card-icon {
    background: #fef3c7;
    color: #d97706;
}

.dashboard-card:nth-child(4) .dashboard-card-icon {
    background: #fce4ec;
    color: #be185d;
}

.dashboard-card-number {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.dashboard-card-change {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
}

/* Seções Modernas */
.admin-section {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.section-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.section-subtitle {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.25rem 0 0 0;
}

.section-content {
    padding: 1.5rem;
}

/* Formulários Elite */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e8ecef;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

/* Botões Modernos */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: none;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.btn-success {
    background: #059669;
    color: white;
    border-color: #059669;
}

.btn-success:hover {
    background: #047857;
}

.btn-warning {
    background: #d97706;
    color: white;
    border-color: #d97706;
}

.btn-warning:hover {
    background: #b45309;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-info {
    background: #0891b2;
    color: white;
    border-color: #0891b2;
}

.btn-info:hover {
    background: #0e7490;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Tabelas Elite */
.table-responsive {
    overflow-x: auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th {
    background: #fafbfc;
    padding: 1.25rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 2px solid #f0f2f5;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table td {
    padding: 1.25rem;
    border-bottom: 1px solid #f0f2f5;
    color: var(--text-light);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: #fafbfc;
}

.table-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid #f0f2f5;
}

/* Status Badges Elite */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-ativo,
.status-venda {
    background: rgba(67, 233, 123, 0.15);
    color: #22c55e;
}

.status-inativo {
    background: rgba(245, 87, 108, 0.15);
    color: #ef4444;
}

.status-aluguel {
    background: rgba(79, 172, 254, 0.15);
    color: #3b82f6;
}

.status-pausado {
    background: rgba(250, 112, 154, 0.15);
    color: #f59e0b;
}

/* Actions Elite */
.table-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Alerts Modernos */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
    border: 1px solid;
}

.alert-success {
    background: rgb(16 185 129 / 0.1);
    color: var(--success-color);
    border-color: rgb(16 185 129 / 0.2);
}

.alert-error {
    background: rgb(239 68 68 / 0.1);
    color: var(--danger-color);
    border-color: rgb(239 68 68 / 0.2);
}

.alert-warning {
    background: rgb(245 158 11 / 0.1);
    color: var(--warning-color);
    border-color: rgb(245 158 11 / 0.2);
}

.alert-info {
    background: rgb(6 182 212 / 0.1);
    color: var(--info-color);
    border-color: rgb(6 182 212 / 0.2);
}

/* Login Elite */
.login-body {
    background: var(--gradient-1);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.login-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.login-form {
    padding: 3rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-title {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0 0 2.5rem 0;
}

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

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.admin-section {
    animation: slideInUp 0.6s ease-out;
}

.admin-nav-item {
    animation: slideInLeft 0.4s ease-out;
}

.dashboard-card {
    animation: slideInUp 0.6s ease-out;
}

.dashboard-card:nth-child(2) {
    animation-delay: 0.1s;
}

.dashboard-card:nth-child(3) {
    animation-delay: 0.2s;
}

.dashboard-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Responsividade Otimizada */
@media (max-width: 1200px) {
    .container {
        padding: 0 1rem;
    }

    .filtros-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }

    .imoveis-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    /* Admin Sidebar Mobile */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    }

    .dashboard-cards {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }

    /* Formulários responsivos */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-row-2,
    .form-row-3,
    .form-row-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .checkbox-group {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
}

/* Menu Mobile Toggle - UX Design Moderno */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-toggle:hover::before {
    opacity: 1;
}

/* Mobile User Menu - Hidden on Desktop */
.mobile-user-menu {
    display: none;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
    margin: 3px 0;
    display: block;
}

.mobile-menu-toggle:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle.active {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: #e74c3c;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #e74c3c;
}

@media (max-width: 768px) {
    /* Header Mobile - Recriado */
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 0 1rem;
        min-height: 60px;
        gap: 1rem;
    }

    /* Menu Hambúrguer - lado direito para frontend */
    .mobile-menu-toggle {
        display: flex;
        order: 3;
        flex-shrink: 0;
        align-items: center;
        margin-left: auto;
    }

    /* Admin Header Container */
    .admin-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* Logo mobile para admin - apenas visível no mobile */
    .admin-header .admin-mobile-logo {
        order: 1 !important;
        margin-right: 1rem !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .admin-header .admin-mobile-logo img {
        height: 32px !important;
        width: auto !important;
    }

    /* Admin header title positioning */
    .admin-header .admin-header-title {
        order: 2 !important;
        flex: 1 !important;
        text-align: left !important;
    }

    /* Menu Hambúrguer - lado direito para admin */
    .admin-header .mobile-menu-toggle {
        order: 3 !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
        display: flex !important;
        max-width: 30px;
    }

    /* === LEADS RESPONSIVIDADE MELHORADA === */

    /* Estatísticas do funil - melhor layout mobile */
    .leads-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .lead-stat-card {
        padding: 1rem;
        text-align: center;
    }

    .lead-stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.375rem;
    }

    .lead-stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    /* Filtros mais compactos */
    .lead-filters {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    /* Ações em lote responsiva */
    .bulk-actions {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .bulk-actions > form > div {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .bulk-actions .form-group {
        margin-bottom: 0;
        width: 100%;
    }

    .bulk-actions .btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    /* Tabela de leads mais responsiva */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }

    .admin-table {
        min-width: 800px;
        font-size: 0.75rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.625rem 0.375rem;
        vertical-align: top;
    }

    .admin-table th {
        position: sticky;
        top: 0;
        background: #fafbfc;
        z-index: 10;
    }

    /* Badges de status menores */
    .status-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
        border-radius: 12px;
        line-height: 1;
    }

    /* Ações da tabela em coluna */
    .lead-actions {
        flex-direction: column;
        gap: 0.25rem;
        min-width: 120px;
    }

    .lead-actions .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.6875rem;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Modal responsivo */
    .lead-modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
        border-radius: 12px;
    }

    /* Formulário do modal */
    .lead-modal .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lead-modal .form-group {
        margin-bottom: 1rem;
    }

    .lead-modal .form-input,
    .lead-modal .form-select,
    .lead-modal .form-textarea {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    /* Detalhes do lead mais organizados */
    .lead-detail {
        margin-bottom: 0.75rem;
        padding: 0.5rem;
        background: #f9fafb;
        border-radius: 6px;
        font-size: 0.875rem;
    }

    .lead-detail strong {
        display: block;
        width: auto;
        margin-bottom: 0.25rem;
        color: #374151;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Paginação mais compacta */
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
        margin-top: 1.5rem;
        justify-content: center;
    }

    .pagination a,
    .pagination span {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-width: 36px;
    }

    /* Checkboxes maiores para touch */
    .lead-checkbox,
    #selectAll {
        width: 18px;
        height: 18px;
        margin: 0;
    }

    /* Melhor espaçamento dos contacts */
    .admin-table td div {
        margin-bottom: 0.25rem;
        line-height: 1.3;
    }

    .admin-table td div:last-child {
        margin-bottom: 0;
    }

    /* Links de contato maiores */
    .admin-table a {
        font-size: 0.75rem;
        word-break: break-all;
    }

    /* Responsividade específica para interesse */
    .admin-table td div[style*="font-size: 0.8rem"] {
        font-size: 0.6875rem !important;
        margin-top: 0.25rem;
    }

    /* Data mais compacta */
    .admin-table td div[style*="font-size: 0.875rem"],
    .admin-table td div[style*="font-size: 0.75rem"] {
        font-size: 0.6875rem !important;
        line-height: 1.2;
    }

    /* Logo - centralizado no mobile */
    header h1,
    .logo {
        order: 2;
        flex: 1;
        text-align: center;
    }

    /* Título h1 - oculto no mobile */
    header h1 {
        display: none;
    }

    /* Menu Mobile CSS (idêntico ao da home) */
    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 0 30px rgba(0,0,0,0.3);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        display: flex !important;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        flex-direction: column;
        padding: 0;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1001;
        overflow-y: auto;
        border-radius: 0 24px 24px 0;
    }

    .main-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        border-radius: 0 24px 0 0;
    }

    .main-nav.mobile-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav::after {
        content: '';
        position: absolute;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        z-index: 1;
    }

    .main-nav a {
        margin: 8px 16px;
        padding: 16px 20px;
        font-size: 16px;
        font-weight: 500;
        display: flex;
        align-items: center;
        text-align: left;
        border: none;
        border-radius: 16px;
        width: calc(100% - 32px);
        box-sizing: border-box;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        position: relative;
        color: #2c3e50;
        text-decoration: none;
        background: transparent;
        margin-top: 120px;
    }

    .main-nav a:first-child {
        margin-top: 120px;
    }

    .main-nav a:last-child {
        margin-bottom: 32px;
    }

    .main-nav a::before {
        content: '';
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background: var(--primary-color);
        border-radius: 50%;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .main-nav a:hover {
        background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%);
        transform: translateX(8px);
        color: var(--primary-color);
        box-shadow: 0 4px 16px rgba(52, 152, 219, 0.2);
    }

    .main-nav a:hover::before {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }

    .main-nav a:active {
        transform: translateX(4px) scale(0.98);
    }

    /* Main content mobile */
    main {
        margin: 1rem auto;
    }

    .filtros {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .filtros h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .filtros-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .campo label {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }

    .campo input,
    .campo select {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    button,
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }

    .btn-limpar {
        margin-top: 0.5rem;
    }

    /* Imóveis grid mobile */
    .imoveis-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .imovel-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .imovel-imagem {
        height: 200px;
    }

    .imovel-info {
        padding: 1.25rem;
    }

    .imovel-info h3 {
        font-size: 1.125rem;
        line-height: 1.3;
    }

    .preco {
        font-size: 1.25rem;
    }

    .btn-ver-mais {
        width: 100%;
        text-align: center;
        padding: 0.875rem;
    }

    /* Paginação mobile */
    .paginacao {
        flex-wrap: wrap;
        gap: 0.375rem;
    }

    .paginacao a,
    .paginacao .atual {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
        min-width: 40px;
    }

    /* Admin mobile */
    .admin-header {
        padding: 0.875rem 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 60px;
    }

    .admin-header-title {
        font-size: 1.25rem;
        margin: 0;
        flex: 1;
        text-align: left;
    }

    /* Admin Mobile User Menu */
    .mobile-user-menu-admin {
        display: none;
        align-items: center;
        position: relative;
    }

    .mobile-user-toggle-admin {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: #f3f4f6;
        border: 1px solid #d1d5db;
        border-radius: 50%;
        cursor: pointer;
        color: #374151;
        font-size: 1.1rem;
        transition: all 0.2s ease;
    }

    .mobile-user-toggle-admin:hover {
        background: #e5e7eb;
        transform: scale(1.05);
    }

    .mobile-user-dropdown-admin {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 0.5rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1002;
        min-width: 160px;
        border: 1px solid #e5e7eb;
    }

    .mobile-user-dropdown-admin.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-user-dropdown-admin::before {
        content: '';
        position: absolute;
        top: -6px;
        right: 12px;
        width: 12px;
        height: 12px;
        background: white;
        border: 1px solid #e5e7eb;
        border-right: none;
        border-bottom: none;
        transform: rotate(45deg);
    }

    .mobile-user-dropdown-admin a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        color: #374151;
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.2s ease;
        border-radius: 6px;
        margin: 0.25rem;
    }

    .mobile-user-dropdown-admin a:first-child {
        margin-top: 0.5rem;
    }

    .mobile-user-dropdown-admin a:last-child {
        margin-bottom: 0.5rem;
        color: #dc2626;
    }

    .mobile-user-dropdown-admin a:hover {
        background: #f3f4f6;
        transform: translateX(2px);
    }

    .mobile-user-dropdown-admin a:last-child:hover {
        background: #fef2f2;
        color: #dc2626;
    }

    /* Hide both mobile and desktop user menu on mobile */
    .mobile-user-menu-admin {
        display: none !important;
    }

    .admin-user {
        display: none;
    }

    .admin-user .btn-danger {
        display: none;
    }

    .admin-content {
        padding: 1rem;
    }

    .section-header {
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .section-subtitle {
        font-size: 0.75rem;
    }

    /* Dashboard Cards Moderno */
    .dashboard-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .dashboard-card {
        padding: 1rem;
    }

    .dashboard-card:nth-child(1) {
        background: #e3f2fd;
    }

    .dashboard-card:nth-child(2) {
        background: #e8f5e8;
    }

    .dashboard-card:nth-child(3) {
        background: #fff8e1;
    }

    .dashboard-card:nth-child(4) {
        background: #fce4ec;
    }

    .dashboard-card-number {
        font-size: 1.75rem;
    }

    .dashboard-card-title {
        font-size: 0.6875rem;
    }

    /* Tabelas mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 600px;
        font-size: 0.75rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }

    .admin-table th {
        font-size: 0.6875rem;
    }

    .table-image {
        width: 40px;
        height: 40px;
    }

    .table-actions {
        flex-direction: column;
        gap: 0.375rem;
    }

    .table-actions .btn {
        font-size: 0.6875rem;
        padding: 0.375rem 0.5rem;
        width: auto;
    }

    /* Form mobile */
    .form-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .form-tabs::-webkit-scrollbar {
        display: none;
    }

    .form-tab {
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .form-section {
        padding: 1.25rem;
    }

    .section-title {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .checkbox-item {
        padding: 0.75rem;
    }

    .checkbox-item label {
        font-size: 0.8125rem;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .image-preview {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }

    .image-preview img {
        height: 60px;
    }

    /* Login mobile */
    .login-container {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .login-form {
        padding: 2rem 1.5rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-subtitle {
        font-size: 0.8125rem;
    }

    /* Alerts mobile */
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }
}

/* Responsividade para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Estatísticas em 3 colunas para tablets */
    .leads-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    /* Filtros em 2 colunas */
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Tabela com scroll horizontal suave */
    .admin-table {
        min-width: 900px;
        font-size: 0.8125rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.875rem 0.5rem;
    }
}

@media (max-width: 480px) {
    /* Extra pequeno - smartphones */
    body {
        font-size: 13px;
    }

    .container {
        padding: 0 0.75rem;
    }

    header h1 {
        font-size: 1.25rem;
    }

    nav a {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
    }

    .filtros,
    .resultados {
        padding: 1rem;
    }

    .filtros h2,
    .resultados h2 {
        font-size: 1.125rem;
    }

    .imovel-info {
        padding: 1rem;
    }

    .imovel-info h3 {
        font-size: 1rem;
    }

    .preco {
        font-size: 1.125rem;
    }

    .admin-header {
        padding: 0.75rem;
    }

    .admin-header-title {
        font-size: 1.125rem;
    }

    .admin-content {
        padding: 0.75rem;
    }

    .section-header {
        padding: 1rem;
    }

    .form-section {
        padding: 1rem;
    }

    .dashboard-card {
        padding: 0.875rem;
    }

    .dashboard-card-number {
        font-size: 1.75rem;
    }

    .login-form {
        padding: 1.5rem 1rem;
    }

    .login-title {
        font-size: 1.25rem;
    }

    /* Menu móvel para admin */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.25rem;
        cursor: pointer;
        padding: 0.5rem;
        color: #374151;
    }

    .admin-sidebar {
        width: 280px;
    }

    .admin-main {
        min-height: 100vh;
    }

    /* === LEADS EXTRA RESPONSIVAS PARA SMARTPHONES === */

    /* Estatísticas em linha única para telas muito pequenas */
    .leads-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .lead-stat-card {
        padding: 0.75rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .lead-stat-number {
        font-size: 1.25rem;
        margin-bottom: 0;
        order: 2;
    }

    .lead-stat-label {
        font-size: 0.6875rem;
        order: 1;
        flex: 1;
    }

    /* Filtros ainda mais compactos */
    .lead-filters {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .filters-grid {
        gap: 0.5rem;
    }

    .form-input,
    .form-select {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }

    /* Ações em lote otimizada */
    .bulk-actions {
        padding: 0.75rem;
    }

    .bulk-actions .btn {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }

    /* Tabela ultra responsiva */
    .admin-table {
        min-width: 600px;
        font-size: 0.6875rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.25rem;
    }

    .admin-table th {
        font-size: 0.625rem;
    }

    /* Badges ainda menores */
    .status-badge {
        padding: 0.1875rem 0.375rem;
        font-size: 0.625rem;
        border-radius: 8px;
    }

    /* Ações em botões menores */
    .lead-actions .btn {
        padding: 0.25rem 0.375rem;
        font-size: 0.625rem;
        line-height: 1.2;
    }

    /* Modal ocupando quase toda a tela */
    .lead-modal-content {
        margin: 0.5rem;
        padding: 1rem;
        max-width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
        border-radius: 8px;
    }

    /* Detalhes do lead mais compactos */
    .lead-detail {
        margin-bottom: 0.5rem;
        padding: 0.375rem;
        font-size: 0.8125rem;
    }

    .lead-detail strong {
        font-size: 0.6875rem;
        margin-bottom: 0.1875rem;
    }

    /* Paginação minimalista */
    .pagination a,
    .pagination span {
        padding: 0.375rem 0.5rem;
        font-size: 0.6875rem;
        min-width: 32px;
    }

    /* Scroll indicator para tabela */
    .table-responsive::after {
        content: "← Deslize para ver mais →";
        display: block;
        text-align: center;
        font-size: 0.6875rem;
        color: #6b7280;
        padding: 0.5rem;
        background: #f9fafb;
        border-top: 1px solid #e5e7eb;
    }

    /* Otimização de checkboxes */
    .lead-checkbox,
    #selectAll {
        width: 16px;
        height: 16px;
    }

    /* Textos de contato quebram melhor */
    .admin-table a {
        word-break: break-all;
        line-height: 1.2;
    }
}

/* Banner Slider */
.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide-image-mobile {
    display: none;
}

@media (max-width: 768px) {
    .slide-image-desktop {
        display: none;
    }

    .slide-image-mobile {
        display: block;
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.2) 100%
    );
    z-index: 3;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    padding: 2rem;
}

.slide-content-inner {
    text-align: center;
    color: white;
    max-width: 800px;
    width: 100%;
}

.slide-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide.active .slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.slide-description {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0.95;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide.active .slide-description {
    opacity: 0.95;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.slide-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide.active .slide-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.slide-cta-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(52, 152, 219, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.slide-cta-primary::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: left 0.6s;
}

.slide-cta-primary:hover::before {
    left: 100%;
}

.slide-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(52, 152, 219, 0.6);
}

.slide-cta-secondary {
    background: transparent;
    color: white;
    padding: 14px 28px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
}

.slide-cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.cta-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.slide-cta-primary:hover .cta-icon {
    transform: translateX(4px);
}

/* Navigation Controls */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 5;
    backdrop-filter: blur(10px);
    opacity: 0.7;
}

.slider-nav:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 2rem;
}

.slider-next {
    right: 2rem;
}

.slider-nav svg {
    width: 24px;
    height: 24px;
}

/* Indicators */
.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.slider-dot {
    position: relative;
    width: 48px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    border: none;
}

.slider-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 3px;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slider-dot.active::after {
    left: 0;
}

.slider-dot:hover {
    background: rgba(255,255,255,0.5);
    transform: scaleY(1.5);
}

.dot-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-dot:hover .dot-label {
    opacity: 1;
}

/* Progress Bar */
.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 5;
}

.slide-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); /* Assuming --accent-color is defined elsewhere or can be replaced */
    transition: width 0.1s linear;
}

/* Play/Pause Control */
.slider-control-play {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.slider-control-play:hover {
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.slider-control-play svg {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease;
}

.slider-control-play .play-icon,
.slider-control-play .pause-icon {
    position: absolute;
    opacity: 0;
}

.slider-control-play .pause-icon.active,
.slider-control-play .play-icon.active {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
        margin-bottom: 3rem;
    }

    .slide-content {
        padding: 1.5rem;
    }

    .slide-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .slide-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 2rem;
    }

    .slide-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .slide-cta-primary,
    .slide-cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }

    .slider-nav {
        width: 48px;
        height: 48px;
    }

    .slider-prev {
        left: 1rem;
    }

    .slider-next {
        right: 1rem;
    }

    .slider-indicators {
        bottom: 1.5rem;
    }

    .slider-dot {
        width: 36px;
        height: 4px;
    }

    .slider-control-play {
        width: 36px;
        height: 36px;
        top: 1rem;
        right: 1rem;
    }

    .slider-control-play svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }

    .slide-title {
        margin-bottom: 0.75rem;
    }

    .slide-description {
        margin-bottom: 1.5rem;
    }

    .slide-cta-primary {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .slide-cta-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Mobile Overlay Moderno */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Scrollbar Elite */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f3f4;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

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

/* Portal XML Responsive Layout */
.portal-xml-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.portal-main-content {
    min-width: 0;
}

.portal-sidebar {
    min-width: 0;
}

.portal-stats-card {
    margin-bottom: 2rem;
}

.stats-title {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: var(--border-radius);
    border: 1px solid #e5e7eb;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-number.stat-success {
    color: #059669;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.xml-url-container {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.xml-url-input {
    flex: 1;
    min-width: 0;
}

.xml-url-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.xml-url-help {
    color: #6b7280;
    margin-top: 0.5rem;
    display: block;
    font-size: 0.8125rem;
}

.info-box {
    background: #eff6ff;
    border: 1px solid #3b82f6;
    border-radius: var(--border-radius);
    padding: 1rem;
}

.info-list {
    margin: 0;
    padding-left: 1.5rem;
    color: #1e40af;
}

.info-list li {
    margin-bottom: 0.5rem;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.warning-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--border-radius);
    padding: 1rem;
}

.warning-title {
    margin: 0 0 0.5rem 0;
    color: #92400e;
    font-size: 1rem;
    font-weight: 600;
}

.warning-text {
    margin: 0;
    color: #92400e;
    font-size: 0.875rem;
}

.warning-link {
    color: #92400e;
    text-decoration: underline;
    font-weight: 500;
}

.warning-link:hover {
    color: #78350f;
}

.sidebar-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.sidebar-btn {
    width: 100%;
    margin-bottom: 1rem;
    justify-content: center;
}

.sidebar-btn:last-child {
    margin-bottom: 0;
}

.how-to-card {
    margin-top: 1rem;
}

.how-to-list {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.how-to-list li {
    margin-bottom: 0.5rem;
}

.how-to-list li:last-child {
    margin-bottom: 0;
}

/* Mobile Responsive for Portal XML */
@media (max-width: 1024px) {
    .portal-xml-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portal-sidebar {
        order: -1;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .xml-url-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .xml-url-buttons {
        justify-content: stretch;
    }

    .xml-url-buttons .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .portal-stats-card {
        margin-bottom: 1.5rem;
    }

    .stats-title {
        font-size: 1rem;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.75rem 0.5rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .info-list,
    .how-to-list {
        font-size: 0.8125rem;
        padding-left: 1.25rem;
    }

    .sidebar-btn {
        font-size: 0.8125rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .portal-xml-grid {
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .xml-url-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-box,
    .warning-box {
        padding: 0.875rem;
    }

    .info-list,
    .how-to-list {
        font-size: 0.75rem;
        padding-left: 1rem;
    }
}

/* Mobile Responsive for Portal XML */
@media (max-width: 1024px) {
    .portal-xml-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portal-sidebar {
        order: -1;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .xml-url-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .xml-url-buttons {
        justify-content: stretch;
    }

    .xml-url-buttons .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .portal-stats-card {
        margin-bottom: 1.5rem;
    }

    .stats-title {
        font-size: 1rem;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.75rem 0.5rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .info-list,
    .how-to-list {
        font-size: 0.8125rem;
        padding-left: 1.25rem;
    }

    .sidebar-btn {
        font-size: 0.8125rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .portal-xml-grid {
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .xml-url-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-box,
    .warning-box {
        padding: 0.875rem;
    }

    .info-list,
    .how-to-list {
        font-size: 0.75rem;
        padding-left: 1rem;
    }
}

/* Hide admin user menu and mobile user menu admin on desktop only */
@media (min-width: 769px) {
    .admin-header .admin-user,
    .admin-main .admin-user,
    .mobile-user-menu-admin,
    .admin-header .admin-mobile-logo {
        display: none !important;
    }
}