/* ========================================
   DASHBOARD CLEAN - PALETA DO SITE PRINCIPAL
======================================== */

html {
    scroll-behavior: smooth;
}

:root {
    /* Paleta do site */
    --primary-bg: #0c0c11;
    --card-bg: #13131c;
    --sidebar-bg: #090910;
    --header-bg: #0c0c11;
    --primary-gradient: #0c0c11;
    --secondary-gradient: #1a1a24;
    --accent-color: #d4af37;
    --accent-muted: rgba(212, 175, 55, 0.15);
    --white: #ffffff;
    --dark: #1a1a1a;
    --gray: #888898;
    --light-gray: #f5f5f5;
    --text-dark: #333333;
    --border-subtle: rgba(255, 255, 255, 0.07);

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 80px;
    --header-height: 68px;
    --border-radius: 5px;
    --transition: all 0.22s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary-bg);
    color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================
   SIDEBAR
======================================== */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-subtle);
    transition: var(--transition);
    z-index: 1000;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.logo i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
}

/* Navigation */
.sidebar-nav {
    padding: 1rem 0;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin: 0.5rem 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.nav-item.active .nav-link {
    color: var(--white);
    background: rgba(212, 175, 55, 0.07);
    font-weight: 600;
}

.nav-item.active .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
    border-radius: 0 4px 4px 0;
}

/* ========================================
   MAIN CONTENT
======================================== */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

.sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* Header */
.dashboard-header {
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-mobile-actions {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.mobile-nav-toggle,
.mobile-home-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(0, 0, 0, 0.45);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav-toggle:hover,
.mobile-home-link:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.6);
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--gray);
    font-size: 0.875rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tenant-site-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 999px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.tenant-site-link:hover {
    border-color: rgba(212, 175, 55, 0.8);
    background: rgba(212, 175, 55, 0.15);
    color: #f3d46c;
}

/* Notification Bell */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--gray, #b3b3b3);
    font-size: 1.1rem;
}
.notification-bell:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-color, #d4af37);
}
.notification-badge {
    position: absolute;
    top: 2px;
    right: 0;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
}
.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    max-width: calc(100vw - 2rem);
    max-height: 420px;
    background: var(--card-bg, #1e1e3a);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 999;
    overflow: hidden;
}
.notif-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.9rem;
}
.notif-panel-list {
    max-height: 360px;
    overflow-y: auto;
}
.notif-item {
    display: flex;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.2s;
    align-items: flex-start;
}
.notif-item:hover {
    background: rgba(212, 175, 55, 0.08);
}
.notif-item.unread {
    background: rgba(102, 126, 234, 0.08);
}
.notif-item .notif-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.notif-item .notif-body {
    flex: 1;
    min-width: 0;
}
.notif-item .notif-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-item .notif-msg {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-item .notif-time {
    font-size: 0.68rem;
    color: #666;
    margin-top: 0.2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.user-info:hover {
    background: rgba(212, 175, 55, 0.1);
}

.user-name {
    color: var(--white);
    font-weight: 500;
}

.user-avatar {
    width: 34px;
    height: 34px;
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* User Dropdown Menu */
.user-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #12121a;
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    min-width: 240px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.user-avatar-small {
    width: 38px;
    height: 38px;
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1rem;
}

.user-menu-name {
    display: block;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.user-menu-email {
    display: block;
    color: var(--gray);
    font-size: 0.8rem;
}

.user-menu-divider {
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
    margin: 0.5rem 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.user-menu-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.user-menu-item i {
    font-size: 1.1rem;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.user-menu-item span {
    font-size: 0.9rem;
}

.user-menu-item:last-child {
    border-radius: 0 0 12px 12px;
}

.user-menu-item:last-child:hover {
    background: rgba(244, 67, 54, 0.1);
}

.user-menu-item:last-child i {
    color: #e57373;
}

/* ========================================
   CONTENT
======================================== */

.content-wrapper {
    padding: 2rem;
}

.content-section {
    display: none !important;
}

.content-section.active {
    display: block !important;
}

.section-title {
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--gray);
    font-size: 0.875rem;
}

/* ========================================
   EMPTY STATES
======================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    width: 68px;
    height: 68px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.75rem;
    color: var(--accent-color);
    opacity: 0.65;
}

.empty-icon-image {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-primary {
    background: var(--accent-color);
    color: #0c0c11;
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary:hover {
    background: #c9a226;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

/* ========================================
   SETTINGS GRID
======================================== */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
}

.setting-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.setting-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.setting-icon {
    width: 52px;
    height: 52px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.35rem;
    color: var(--accent-color);
}

.setting-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.setting-card p {
    color: var(--gray);
    font-size: 0.875rem;
}

/* ========================================
   ZONA DE PERIGO
======================================== */

.danger-zone {
    margin-top: 20px;
}

.danger-card {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease;
}

.danger-card:hover {
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

.danger-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.danger-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.danger-icon i {
    font-size: 28px;
    color: white;
}

.danger-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #991b1b;
}

.danger-info p {
    margin: 0;
    color: #7f1d1d;
    font-size: 0.875rem;
    line-height: 1.5;
}

.btn-danger {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-danger i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .danger-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .danger-content {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-danger {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   SIDEBAR OVERLAY (MOBILE)
======================================== */

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ========================================
   HAMBURGER → X ANIMATION
======================================== */

.mobile-nav-toggle .fa-bars {
    transition: var(--transition);
}

.mobile-nav-toggle.active .fa-bars::before {
    content: "\f00d";
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard-header {
        padding: 0 1rem;
        height: auto;
        min-height: var(--header-height);
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .dashboard-mobile-actions {
        display: flex;
    }

    .header-left {
        width: 100%;
    }

    .header-right {
        margin-left: auto;
    }

    .tenant-site-link span {
        display: none;
    }

    .tenant-site-link {
        padding: 0.5rem 0.6rem;
    }
    
    .content-wrapper {
        padding: 1rem;
    }

    /* Tabelas responsivas */
    .properties-table-container,
    .leads-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .properties-table,
    .leads-table {
        min-width: 700px;
    }

    /* Controls em coluna */
    .properties-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .properties-controls .controls-left,
    .properties-controls .controls-right {
        width: 100%;
    }

    .properties-controls .controls-right {
        justify-content: stretch;
    }

    .properties-controls .controls-right .btn-primary {
        width: 100%;
    }

    .leads-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .leads-controls .search-box {
        width: 100%;
    }

    .leads-controls .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .leads-controls .filter-group select {
        width: 100%;
    }

    .leads-controls .btn-primary {
        width: 100%;
    }

    /* Agenda layout em coluna */
    .agenda-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-wrap: wrap;
    }

    .user-name {
        display: none;
    }

    .tenant-site-link {
        order: 1;
    }
    
    .header-left h1 {
        font-size: 1.25rem;
    }

    .header-left .page-subtitle {
        font-size: 0.75rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .setting-card {
        padding: 1.5rem;
    }

    /* Leads stats 2 colunas */
    .leads-stats {
        grid-template-columns: 1fr 1fr;
    }

    /* User info compacto */
    .user-info {
        padding: 0.35rem 0.5rem;
        gap: 0.5rem;
    }

    .user-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    /* Search box full width */
    .search-box {
        width: 100%;
    }

    .filter-group {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-group select {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 0 0.75rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .header-left h1 {
        font-size: 1.1rem;
    }

    .content-wrapper {
        padding: 0.75rem;
    }

    .section-title h2 {
        font-size: 1.2rem;
    }

    .section-title p {
        font-size: 0.8rem;
    }

    /* Metric cards em coluna */
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        padding: 1rem;
    }

    /* Charts menores */
    .chart-card {
        padding: 1rem;
    }

    /* Leads stats 2 colunas em mobile pequeno */
    .leads-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .lead-stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    /* Botões mobile */
    .mobile-nav-toggle,
    .mobile-home-link {
        width: 36px;
        height: 36px;
    }

    /* Settings cards */
    .setting-card {
        padding: 1.25rem;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section.active {
    animation: fadeIn 0.3s ease;
}

/* ========================================
   PROPERTIES MANAGEMENT
======================================== */

.properties-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 0.875rem;
}

.search-box input::placeholder {
    color: var(--gray);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 0.875rem;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.controls-right .btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

/* Properties Table */
.properties-table-container {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.properties-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
}

.properties-table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--white);
    font-weight: 600;
    padding: 0.7rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    white-space: nowrap;
    font-size: 0.85rem;
}

.properties-table td {
    padding: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
}

/* Ações: coluna sticky à direita em telas menores */
@media (max-width: 1024px) {
    .properties-table th:last-child,
    .properties-table td:last-child {
        position: sticky;
        right: 0;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: -4px 0 8px rgba(0, 0, 0, 0.3);
        z-index: 2;
    }

    .properties-table th:last-child {
        background: rgba(30, 25, 10, 0.98);
    }

    .properties-table td {
        padding: 0.75rem;
    }

    .properties-table th {
        padding: 0.75rem;
    }
}

.property-row:hover {
    background: rgba(212, 175, 55, 0.05);
}

.property-info h4 {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.property-address,
.property-city {
    color: var(--gray);
    font-size: 0.75rem;
    margin: 0.25rem 0;
}

.property-address i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.property-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.property-type-apartamento {
    background: rgba(0, 123, 255, 0.2);
    color: #4fc3f7;
}

.property-type-casa {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.property-type-terreno {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
}

.property-type-comercial {
    background: rgba(156, 39, 176, 0.2);
    color: #ba68c8;
}

.property-price {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.875rem;
}

.property-purpose {
    display: block;
    color: var(--gray);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.location-info .neighborhood {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
}

.location-info .city {
    color: var(--gray);
    font-size: 0.75rem;
}

.property-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.property-status-disponivel {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.property-status-vendido {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
}

.property-status-reservado {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
}

.property-status-alugado {
    background: rgba(63, 81, 181, 0.2);
    color: #7986cb;
}

.property-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.property-category-lancamentos {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.property-category-mais-procurados {
    background: rgba(255, 87, 34, 0.2);
    color: #ff5722;
}

.property-category-beira-mar {
    background: rgba(3, 169, 244, 0.2);
    color: #03a9f4;
}

.property-category-none {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.property-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--white);
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
}

.action-btn.delete:hover {
    color: #e57373;
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

/* ========================================
   PROPERTY MODAL
======================================== */

/* ========================================
   PROPERTY FORM - FULL PAGE OVERLAY
======================================== */

.prop-form-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #1a1f2e;
    overflow-y: auto;
    flex-direction: column;
    align-items: center;
}

.prop-form-overlay.active {
    display: flex;
}

.prop-form-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2.5rem 3rem;
}

/* Header */
.prop-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.prop-form-header h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.prop-form-breadcrumb {
    font-size: 0.8rem;
    color: #888;
}

.prop-form-breadcrumb a {
    color: var(--accent-color, #4DB6AC);
    text-decoration: none;
    font-weight: 600;
}

.prop-form-breadcrumb a:hover {
    text-decoration: underline;
}

.prop-form-breadcrumb span {
    color: #ccc;
    font-weight: 600;
}

/* Tabs Navigation */
.prop-form-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #2a3042;
    margin-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
    position: relative;
}

.prop-form-tabs::-webkit-scrollbar {
    height: 3px;
}

.prop-form-tabs::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 3px;
}

.prop-form-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.prop-tab {
    position: relative;
    padding: 0.85rem 1.5rem;
    background: none;
    border: none;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
    font-family: inherit;
}

.prop-tab:hover {
    color: #ccc;
}

.prop-tab.active {
    color: var(--accent-color, #4DB6AC);
}

.prop-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color, #4DB6AC);
}

/* Tab Content */
.prop-tab-content {
    display: none;
}

.prop-tab-content.active {
    display: block;
}

.prop-tab-body {
    background: #222738;
    border: 1px solid #2a3042;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 2rem 2.5rem;
    min-height: 400px;
}

/* Form elements inside tabs */
.prop-tab-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.prop-tab-body .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.prop-tab-body .form-group label {
    color: #ccc;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.prop-tab-body .form-group input,
.prop-tab-body .form-group select,
.prop-tab-body .form-group textarea {
    padding: 0.7rem 0.9rem;
    background: #1a1f2e;
    border: 1px solid #333a4f;
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.prop-tab-body .form-group input[type="date"]::-webkit-calendar-picker-indicator,
.prop-tab-body .form-group input[type="time"]::-webkit-calendar-picker-indicator,
.prop-tab-body .form-group input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.8;
}

.prop-tab-body .form-group input:focus,
.prop-tab-body .form-group select:focus,
.prop-tab-body .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color, #4DB6AC);
    box-shadow: 0 0 0 2px rgba(77, 182, 172, 0.15);
}

.prop-tab-body .form-group select option {
    background: #1a1f2e;
    color: #fff;
}

.prop-tab-body .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.prop-tab-body .field-help {
    color: #666;
    font-size: 0.72rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Features Organized (Aba Características) */
.features-organized {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.feature-category {
    border: 1px solid #333a4f;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1f2e;
}

.feature-category-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-color, #4DB6AC);
    background: rgba(77, 182, 172, 0.08);
    border-bottom: 1px solid #333a4f;
    letter-spacing: 0.02em;
}

.feature-category-title i {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.feature-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    min-height: 44px;
    color: #ccc;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #262b3a;
    border-right: 1px solid #262b3a;
    user-select: none;
}

.feature-item:hover {
    background: rgba(77, 182, 172, 0.06);
}

.feature-category-grid .feature-item:nth-child(4n) {
    border-right: none;
}

.feature-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color, #4DB6AC);
    cursor: pointer;
    flex-shrink: 0;
}

.feature-item input[type="checkbox"]:checked + span,
.feature-item:has(input:checked) {
    color: #fff;
    font-weight: 500;
}

/* Feature checkbox labels (new tabbed form) */
.feature-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #1a1f2e;
    border: 1px solid #333a4f;
    border-radius: 20px;
    color: #aaa;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    white-space: nowrap;
}

.feature-check:hover {
    border-color: var(--accent-color, #4DB6AC);
    color: #ddd;
    background: rgba(77, 182, 172, 0.06);
}

.feature-check:has(input:checked) {
    background: rgba(77, 182, 172, 0.15);
    border-color: var(--accent-color, #4DB6AC);
    color: #fff;
    font-weight: 500;
}

.feature-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--accent-color, #4DB6AC);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.feature-check i {
    font-size: 0.78rem;
    opacity: 0.7;
    width: 16px;
    text-align: center;
}

.feature-check:has(input:checked) i {
    opacity: 1;
}

/* Footer Navigation */
.prop-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-top: 0.5rem;
}

.prop-btn-back,
.prop-btn-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: #2a3042;
    border: 1px solid #3a4058;
    border-radius: 6px;
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.prop-btn-back:hover,
.prop-btn-next:hover {
    background: #333a50;
    border-color: #4a5068;
    color: #fff;
}

.prop-btn-back:disabled,
.prop-btn-next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.prop-btn-submit {
    padding: 0.75rem 2rem;
    background: var(--accent-color, #4DB6AC);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.prop-btn-submit:hover {
    background: #3da89e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 182, 172, 0.3);
}

/* File input inside tabs */
.prop-tab-body .file-input {
    display: none;
}

.prop-tab-body .file-input-help {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    border: 2px dashed #333a4f;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.prop-tab-body .file-input-help:hover {
    border-color: var(--accent-color, #4DB6AC);
    background: rgba(77, 182, 172, 0.04);
}

.prop-tab-body .file-input-help i {
    font-size: 2.2rem;
    color: var(--accent-color, #4DB6AC);
    margin-bottom: 0.8rem;
}

.prop-tab-body .file-input-help span {
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.prop-tab-body .file-input-help small {
    color: #666;
    font-size: 0.72rem;
}

.prop-tab-body .image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .prop-form-container {
        padding: 1.2rem 1rem 2rem;
    }
    .prop-tab-body {
        padding: 1.5rem 1.2rem;
    }
    .feature-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prop-tab-body .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .prop-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .prop-form-tabs {
        gap: 0;
    }
    .prop-tab {
        padding: 0.7rem 0.9rem;
        font-size: 0.78rem;
    }
    .prop-tab-body {
        padding: 1rem;
    }
    .feature-category-grid {
        grid-template-columns: 1fr;
    }
    .feature-check {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    .feature-check i {
        display: none;
    }
    .prop-form-footer {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    .prop-btn-submit {
        order: -1;
        width: 100%;
        text-align: center;
    }
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Legacy modal compatibility - keep for publish modal etc */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

/* ========================================
   FULL-PAGE EDIT MODE
======================================== */
.modal.fullscreen {
    padding: 0;
    background: var(--dark);
    backdrop-filter: none;
}

.modal.fullscreen .modal-content {
    max-width: 100%;
    max-height: 100%;
    height: 100vh;
    width: 100vw;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
}

.modal.fullscreen .modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    padding: 1rem 2rem;
    flex-shrink: 0;
}

.modal.fullscreen .modal-header h3 {
    font-size: 1.25rem;
}

.modal.fullscreen .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.modal.fullscreen .prop-form-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.modal.fullscreen .prop-tab-body {
    max-width: 1100px;
    margin: 0 auto;
}

.modal.fullscreen .form-row {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.modal.fullscreen .feature-category-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.modal.fullscreen .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    flex-shrink: 0;
}

/* Back-to-list button in fullscreen header */
.fullscreen-back-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--gray);
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: var(--transition);
    margin-right: 1rem;
}

.fullscreen-back-btn:hover {
    color: var(--white);
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

.modal.fullscreen .fullscreen-back-btn {
    display: inline-flex;
}

.modal-content {
    background: var(--primary-gradient);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-header h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    z-index: 10;
}

.close:hover {
    color: var(--white);
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.modal-body {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    color: var(--accent-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 0.875rem;
    font-family: inherit;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator,
.form-group input[type="time"]::-webkit-calendar-picker-indicator,
.form-group input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select option {
    background: var(--dark);
    color: var(--white);
}

.field-help {
    color: var(--gray);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* File Input Styling */
.file-input {
    display: none;
}

.file-input-help {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.file-input-help:hover {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.05);
}

.file-input-help i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.file-input-help span {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.file-input-help small {
    color: var(--gray);
    font-size: 0.75rem;
}

/* Image Preview */
.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: rgba(244, 67, 54, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
}

.image-preview-item .remove-image:hover {
    background: #f44336;
    transform: scale(1.1);
}

/* Preview de imagens existentes na edição */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.preview-item.existing-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(0,0,0,0.4);
}
.preview-item.existing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.preview-item .main-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(212, 175, 55, 0.9);
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.preview-item .remove-existing-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(244, 67, 54, 0.85);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-item .remove-existing-image:hover {
    background: #f44336;
    transform: scale(1.1);
}
.preview-header {
    font-size: 0.8rem;
    color: var(--gray, #b3b3b3);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem 2rem 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   MESSAGES
======================================== */

.property-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    position: relative;
}

.message-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
}

.message-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #e57373;
}

.message-info {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #64b5f6;
}

.message-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.message-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   RESPONSIVE PROPERTIES
======================================== */

@media (max-width: 768px) {
    .properties-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls-left {
        flex-direction: column;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .properties-table td,
    .properties-table th {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

/* ========================================
   ANALYTICS GRID
======================================== */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}

.metric-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.metric-card p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ========================================
   MODAL ENHANCEMENTS
======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--primary-gradient);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: between;
    align-items: center;
}

.modal-header h3 {
    color: var(--accent-color);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    margin-left: auto;
}

.close-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ========================================
   SETTINGS CARDS INTERACTIONS
======================================== */
.setting-card {
    cursor: pointer;
    transition: var(--transition);
}

.setting-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.setting-card:active {
    transform: translateY(0);
}

/* ========================================
   FORM ENHANCEMENTS
======================================== */
.form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    color: var(--white);
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: var(--transition);
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="color"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus,
.form-group input[type="color"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

/* ========================================
   RESPONSIVE MODAL
======================================== */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .analytics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .metric-card h3 {
        font-size: 2rem;
    }
}

/* ========================================
   ESTILOS DA TABELA DE IMÓVEIS
======================================== */

.property-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.property-mini-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 220px;
}

.property-mini-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.property-mini-content strong {
    color: var(--white);
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
}

.property-mini-content small {
    color: var(--gray);
    font-size: 0.72rem;
}

.property-id-badge {
    display: inline-block;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #f3d37a;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.34);
    white-space: nowrap;
}

.property-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
}

.property-info div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.property-info strong {
    color: var(--white);
    font-weight: 600;
}

.property-info small {
    color: var(--gray);
    font-size: 0.75rem;
}

.category-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.lancamentos {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.category-badge.beira-mar {
    background: rgba(0, 188, 212, 0.2);
    color: #4dd0e1;
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.category-badge.mais-procurados {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.category-badge.pronto-morar {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.category-badge.litoral-sul {
    background: rgba(20, 184, 166, 0.2);
    color: #5eead4;
    border: 1px solid rgba(20, 184, 166, 0.35);
}

.category-badge.litoral-norte {
    background: rgba(14, 165, 233, 0.2);
    color: #7dd3fc;
    border: 1px solid rgba(14, 165, 233, 0.35);
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-badge.status-sold {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.status-badge.status-reserved {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.status-badge.status-rented {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.status-badge.status-pending {
    background: rgba(158, 158, 158, 0.2);
    color: #bdbdbd;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-action {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-color);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-action:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-action.btn-edit:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: #2196f3;
    color: #64b5f6;
}

.btn-action.btn-status:hover {
    background: rgba(255, 152, 0, 0.1);
    border-color: #ff9800;
    color: #ffb74d;
}

.btn-action.btn-delete:hover {
    background: rgba(244, 67, 54, 0.1);
    border-color: #f44336;
    color: #e57373;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b38b30;
}

/* ========================================
   INTEGRAÇÕES - ESTILO CRM PROFISSIONAL
   ======================================== */

/* Grid 3 colunas */
.int-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

/* Card */
.int-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s;
}

.int-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Barra colorida no topo */
.int-card-topbar {
    height: 5px;
    width: 100%;
}

/* Body do card */
.int-card-body {
    padding: 1.2rem 1.3rem 1rem;
}

/* Titulo */
.int-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}

.int-card-subtitle {
    font-size: 0.78rem;
    color: #888;
    margin: 0 0 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Status badge posicionado no card */
.int-card .int-status {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
    min-height: 32px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 1;
}

.int-card .int-status i {
    font-size: 0.38rem;
}

.int-card .int-status.connected {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.int-card .int-status.disconnected {
    background: #f5f5f5;
    color: #999;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.15s;
}

.int-card .int-status.disconnected:hover {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #90caf9;
}

/* Botão inline Desconectar dentro do status badge */
.int-disconnect-btn-inline {
    background: none;
    border: none;
    color: #E53935;
    cursor: pointer;
    font-size: 0.6rem;
    font-weight: 600;
    margin-left: 4px;
    padding: 0;
    transition: color 0.15s;
}

.int-disconnect-btn-inline:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* Botão Ver Procedimento */
.int-btn-procedure {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f8f8f8;
    color: #333;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 1rem;
}

.int-btn-procedure:hover {
    background: #eee;
    border-color: #aaa;
}

/* Stats */
.int-card-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

.int-stat {
    font-size: 0.85rem;
    color: #666;
}

.int-stat strong {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    display: inline;
    margin-right: 0.3rem;
}

/* Botões de ação */
.int-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.int-btn-view {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    color: #fff;
}

/* Cores dos botões baseadas na plataforma */
.int-card[data-color="#1A3C5A"] .int-btn-view { background: #1A3C5A; }
.int-card[data-color="#E53935"] .int-btn-view { background: #E53935; }
.int-card[data-color="#520075"] .int-btn-view { background: #520075; }
.int-card[data-color="#1877F2"] .int-btn-view { background: #1877F2; }
.int-card[data-color="#E1306C"] .int-btn-view { background: #E1306C; }

/* Fallback */
.int-btn-view { background: #1A3C5A; }

.int-btn-view:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.int-btn-integrate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: transparent;
    color: #333;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.int-btn-integrate:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Connected state - card com borda verde */
.int-card.connected {
    border-color: #4CAF50;
}

.int-card.connected .int-card-body::after {
    content: none;
}

/* Área de conexão (login) */
.int-connect-area {
    padding: 0.8rem 1.3rem 1.2rem;
    border-top: 1px solid #f0f0f0;
    display: none;
    flex-direction: column;
    gap: 0.45rem;
}

.int-connect-area.visible {
    display: flex;
}

.int-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    color: #333;
    font-size: 0.82rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.int-input:focus {
    border-color: #1A3C5A;
    background: #fff;
}

.int-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Botão Conectar primário */
.int-btn-primary {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: #1A3C5A;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.15s;
    margin-top: 0.3rem;
}

.int-btn-primary:hover {
    background: #15304a;
}

.int-btn-primary.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Botão Desconectar */
.int-btn-danger {
    padding: 0.5rem 1rem;
    border: 1px solid #E53935;
    border-radius: 4px;
    background: #fff;
    color: #E53935;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.15s;
    margin-top: 0.3rem;
}

.int-btn-danger:hover {
    background: #E53935;
    color: #fff;
}

/* Connected info inline */
.int-connected-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    background: #E8F5E9;
    border: 1px solid #C8E6C9;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #2E7D32;
    margin: 0 1.3rem 0.8rem;
}

.int-connected-badge i {
    font-size: 0.85rem;
}

.int-connected-badge .int-disconnect-link {
    margin-left: auto;
    background: none;
    border: none;
    color: #E53935;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    border: 1px solid #E53935;
    transition: all 0.15s;
}

.int-connected-badge .int-disconnect-link:hover {
    background: #E53935;
    color: #fff;
}

/* Procedure Modal */
.int-procedure-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.int-procedure-modal.active {
    display: flex;
}

.int-procedure-content {
    background: #fff;
    border-radius: 10px;
    max-width: 520px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.int-procedure-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.int-procedure-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
}

.int-procedure-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #999;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
}

.int-procedure-close:hover {
    color: #333;
}

.int-procedure-body {
    padding: 1.5rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #444;
}

.int-procedure-body ol {
    padding-left: 1.3rem;
    margin: 0;
}

.int-procedure-body ol li {
    margin-bottom: 0.6rem;
}

.int-procedure-body a {
    color: #1877F2;
    text-decoration: none;
    font-weight: 500;
}

.int-procedure-body a:hover {
    text-decoration: underline;
}

/* ========================================
   PAINEL FEED XML
   ======================================== */

.feed-xml-panel {
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.feed-xml-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.feed-xml-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1A3C5A, #2c5f8a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feed-xml-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1A3C5A;
}

.feed-xml-header p {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: #666;
}

.feed-xml-count {
    margin-left: auto;
    background: #E8F5E9;
    color: #2E7D32;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.feed-xml-urls {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.feed-url-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
}

.feed-url-label {
    flex-shrink: 0;
}

.feed-url-badge {
    display: inline-block;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    min-width: 80px;
    text-align: center;
}

.feed-url-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #333;
    outline: none;
    min-width: 0;
    padding: 0.3rem 0;
}

.feed-url-copy {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #1A3C5A;
    color: #fff;
    border: none;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.feed-url-copy:hover {
    background: #2c5f8a;
}

.feed-url-copy:active {
    transform: scale(0.96);
}

.feed-url-copy.copied {
    background: #2E7D32;
}

.feed-xml-instructions {
    margin-top: 1rem;
    text-align: center;
}

.feed-xml-help-btn {
    background: none;
    border: 1px dashed #bbb;
    color: #666;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.feed-xml-help-btn:hover {
    border-color: #1A3C5A;
    color: #1A3C5A;
    background: #f0f4f8;
}

/* Dark mode adaptations */
[data-theme="dark"] .int-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .int-card-title {
    color: var(--text-color);
}

[data-theme="dark"] .int-card-subtitle {
    color: var(--text-muted);
}

[data-theme="dark"] .int-stat {
    color: var(--text-muted);
}

[data-theme="dark"] .int-stat strong {
    color: var(--text-color);
}

[data-theme="dark"] .int-btn-procedure {
    background: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .int-btn-integrate {
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .int-input {
    background: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .int-connect-area {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .int-card-stats {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .int-procedure-content {
    background: var(--card-bg);
}

[data-theme="dark"] .int-procedure-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .int-procedure-header h3 {
    color: var(--text-color);
}

[data-theme="dark"] .int-procedure-body {
    color: var(--text-color);
}

[data-theme="dark"] .feed-xml-panel {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .feed-xml-header h3 {
    color: var(--text-color);
}

[data-theme="dark"] .feed-xml-header p {
    color: var(--text-muted);
}

[data-theme="dark"] .feed-url-row {
    background: var(--bg-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .feed-url-input {
    color: var(--text-color);
}

[data-theme="dark"] .feed-xml-help-btn {
    border-color: var(--border-color);
    color: var(--text-muted);
}

[data-theme="dark"] .feed-xml-help-btn:hover {
    color: var(--text-color);
    background: var(--bg-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .int-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .int-grid {
        grid-template-columns: 1fr;
    }
    .int-card-stats {
        gap: 1rem;
    }
    .int-card .int-status {
        font-size: 0.72rem;
        padding: 0.4rem 0.8rem;
        min-height: 36px;
    }
    .int-btn-primary,
    .int-btn-danger {
        width: 100%;
        text-align: center;
    }
    .feed-url-row {
        flex-wrap: wrap;
    }
    .feed-url-input {
        width: 100%;
        font-size: 0.72rem;
    }
    .feed-xml-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .feed-xml-count {
        margin-left: 0;
    }
}

/* ========================================
   MODAL DE PUBLICAÇÃO EM PLATAFORMAS
   ======================================== */
#publishModal .modal-content {
    max-width: 860px;
    width: 95%;
}

/* Property Info Card */
.publish-prop-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1.2rem;
}

.publish-property-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.publish-prop-details h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.publish-prop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.publish-prop-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1rem;
}

.publish-prop-features {
    display: flex;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.publish-prop-features span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Section titles in publish modal */
.publish-section-title {
    font-size: 1rem;
    margin: 0 0 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.publish-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

/* Platform checkboxes */
.publish-platforms-select {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.platform-select-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--card-bg);
}

.platform-select-item:hover {
    border-color: var(--accent-color);
}

.platform-select-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
    flex-shrink: 0;
}

.platform-select-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.platform-select-info {
    flex: 1;
    min-width: 0;
}

.platform-select-info strong {
    display: block;
    font-size: 0.88rem;
}

.plat-account-info {
    font-size: 0.75rem;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.plat-not-connected {
    font-size: 0.75rem;
    color: #9e9e9e;
}

.plat-connect-link {
    color: var(--accent-color);
    text-decoration: underline;
}

.platform-select-actions {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}

.btn-mini, .btn-mini-go {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: background 0.2s, border-color 0.2s;
}

.btn-mini:hover {
    border-color: var(--accent-color);
    background: rgba(183, 149, 63, 0.1);
}

.btn-mini-go {
    background: var(--accent-color);
    color: #1a1a2e;
    border-color: var(--accent-color);
}

.btn-mini-go:hover {
    opacity: 0.85;
}

/* Batch actions */
.publish-batch-actions {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Preview */
.publish-preview-section {
    margin-top: 1.2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
}

.publish-preview-section h4 {
    margin-bottom: 0.7rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.publish-ad-preview {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.publish-ad-preview .ad-preview-text {
    font-family: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.88rem;
    margin: 0;
    color: var(--text-color);
    line-height: 1.5;
}

.publish-preview-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

/* History */
.publish-history-section {
    margin-top: 1.2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
}

.publish-history-section h4 {
    margin-bottom: 0.7rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.publish-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pub-history-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.8rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
}

.pub-history-plat {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.72rem;
    white-space: nowrap;
}

.pub-history-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.pub-history-status {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.pub-history-status.pub-active {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.pub-history-status.pub-removed {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
}

/* Responsive */
@media (max-width: 600px) {
    .int-grid {
        grid-template-columns: 1fr;
    }
    .publish-platforms-select {
        grid-template-columns: 1fr;
    }
    .publish-prop-card {
        flex-direction: column;
    }
    .publish-property-thumb {
        width: 100%;
        height: 150px;
    }
}

/* ========================================
   RESPONSIVE FULL-PAGE EDIT
======================================== */
@media (max-width: 768px) {
    .modal.fullscreen .modal-header {
        padding: 0.75rem 1rem;
    }
    .modal.fullscreen .modal-body {
        padding: 1rem;
    }
    .modal.fullscreen .prop-form-tabs {
        gap: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }
    .modal.fullscreen .prop-form-tabs::-webkit-scrollbar {
        display: none;
    }
    .modal.fullscreen .prop-tab {
        white-space: nowrap;
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
        flex-shrink: 0;
    }
    .modal.fullscreen .prop-tab i {
        display: none;
    }
    .modal.fullscreen .form-row {
        grid-template-columns: 1fr;
    }
    .modal.fullscreen .feature-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal.fullscreen .modal-footer {
        padding: 0.75rem 1rem;
        flex-direction: column;
    }
    .modal.fullscreen .modal-footer .btn-primary,
    .modal.fullscreen .modal-footer .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .fullscreen-back-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.78rem;
    }
    .fullscreen-back-btn span {
        display: none;
    }
}

/* ========================================
   RESPONSIVE PROPERTY TABLE - CARD VIEW
======================================== */
@media (max-width: 768px) {
    .properties-table-container {
        overflow-x: visible;
    }
    .properties-table {
        min-width: unset;
    }
    .properties-table thead {
        display: none;
    }
    .properties-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .properties-table tr {
        display: flex;
        flex-wrap: wrap;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(212, 175, 55, 0.15);
        border-radius: 12px;
        padding: 1rem;
        gap: 0.5rem;
        align-items: center;
        position: relative;
    }
    .properties-table td {
        border: none;
        padding: 0.25rem 0;
        background: transparent !important;
        box-shadow: none !important;
    }
    /* Imóvel name - full width */
    .properties-table td:nth-child(1) {
        width: 100%;
        font-weight: 600;
        font-size: 0.95rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    /* ID badge */
    .properties-table td:nth-child(2) {
        order: -1;
        font-size: 0.7rem;
        opacity: 0.7;
    }
    /* Tipo, Categoria, Preço, Localização */
    .properties-table td:nth-child(3),
    .properties-table td:nth-child(4),
    .properties-table td:nth-child(5),
    .properties-table td:nth-child(6) {
        font-size: 0.82rem;
    }
    /* Status */
    .properties-table td:nth-child(7) {
        font-size: 0.82rem;
    }
    /* Ações - full width */
    .properties-table td:nth-child(8) {
        width: 100%;
        display: flex;
        gap: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        justify-content: flex-end;
        position: static;
    }
    .properties-table td:nth-child(8) .btn-action {
        flex: 1;
        text-align: center;
        justify-content: center;
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    .properties-table th:last-child,
    .properties-table td:last-child {
        position: static;
        background: transparent;
        box-shadow: none;
    }
}

/* ========================================
   RESPONSIVE LEADS SECTION ENHANCED
======================================== */
@media (max-width: 768px) {
    .leads-stats.leads-stats-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .lead-stat-card {
        padding: 0.8rem;
    }
    .leads-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    .leads-controls .search-box {
        width: 100%;
    }
    .leads-controls .filter-group {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .leads-controls .filter-group select {
        width: 100%;
        min-width: unset;
    }
    .leads-controls .leads-view-toggle {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .leads-controls #addLeadBtn {
        width: 100%;
    }
    /* Leads table card view on mobile */
    .leads-table-container {
        overflow-x: visible;
    }
    .leads-table {
        min-width: unset;
    }
    .leads-table thead {
        display: none;
    }
    .leads-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .leads-table tr {
        display: flex;
        flex-wrap: wrap;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(212, 175, 55, 0.15);
        border-radius: 12px;
        padding: 1rem;
        gap: 0.4rem 0.75rem;
        align-items: center;
    }
    .leads-table td {
        border: none;
        padding: 0.2rem 0;
    }
    /* Nome - full width */
    .leads-table td:nth-child(1) {
        width: 100%;
        font-weight: 600;
        font-size: 0.95rem;
        padding-bottom: 0.4rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .leads-table td:nth-child(2),
    .leads-table td:nth-child(3),
    .leads-table td:nth-child(4),
    .leads-table td:nth-child(5),
    .leads-table td:nth-child(6),
    .leads-table td:nth-child(7),
    .leads-table td:nth-child(8) {
        font-size: 0.8rem;
    }
    /* Ações */
    .leads-table td:last-child {
        width: 100%;
        display: flex;
        gap: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        justify-content: flex-end;
    }
    /* Pipeline Kanban - scroll horizontal */
    .leads-pipeline {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .leads-stats.leads-stats-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .lead-stat-card {
        padding: 0.6rem;
    }
    .stat-number {
        font-size: 1.4rem;
    }
    .stat-label {
        font-size: 0.65rem;
    }
}

/* ========================================
   RESPONSIVE AGENDA / CALENDAR
======================================== */
@media (max-width: 768px) {
    .agenda-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .calendar-section {
        order: 1;
    }
    .appointments-section {
        order: 2;
    }
    .calendar-grid {
        gap: 2px;
    }
    .calendar-day {
        padding: 0.4rem;
        font-size: 0.8rem;
        min-height: 36px;
    }
    .calendar-day-header {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    .calendar-header h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        padding: 0.3rem;
        font-size: 0.72rem;
        min-height: 30px;
    }
    .calendar-day-header {
        font-size: 0.62rem;
    }
}

/* ========================================
   RESPONSIVE SIDEBAR OVERLAY
======================================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile nav toggle in header */
.dashboard-mobile-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 1024px) {
    .dashboard-mobile-actions {
        display: flex;
    }
}

/* ========================================
   RESPONSIVE CONTROLS - SMALL SCREENS
======================================== */
@media (max-width: 480px) {
    .content-wrapper {
        padding: 0.5rem;
    }
    .section-title {
        margin-bottom: 0.75rem;
    }
    .section-title h2 {
        font-size: 1.1rem;
    }
    .section-title p {
        font-size: 0.75rem;
    }
    .btn-primary, .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    .properties-controls .controls-right {
        flex-direction: column;
    }
    .properties-controls .controls-right button {
        width: 100%;
    }
    .search-box input {
        font-size: 0.85rem;
    }
}