/* Reset e variáveis CSS */
:root {
    --primary: #000000;
    --primary-dark: #333333;
    --accent: #22c55e;
    --accent-dark: #16a34a;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #000000;
    --text-light: #666666;
    --muted: #999999;
    --border: #e5e5e5;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --sidebar-bg: #000000;
    --sidebar-text: #cccccc;
    --sidebar-active: #333333;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
    --sidebar-width: 280px;
    --sidebar-compact: 72px;
}

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

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Vendor Container */
.vendor-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar */
.vendor-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(200deg, var(--primary), var(--accent));
    color: var(--sidebar-text);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

.sidebar-header {
    padding: clamp(16px, 3vw, 24px) clamp(12px, 2.5vw, 20px);
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

/* ensure header is positioning context for absolute controls */
.sidebar-header {
    position: relative;
}

.sidebar-header .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sidebar-header .logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    padding: 4px;
}

.sidebar-header .brand-text {
    flex: 1;
}

.sidebar-header .brand-text h2 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.sidebar-header .brand-text p {
    font-size: 0.75rem;
    color: var(--sidebar-text);
}

.sidebar-header .collapse-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--sidebar-text);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: var(--transition);
    flex-shrink: 0;
    font-size: 1.2rem;
}

.sidebar-header .collapse-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    flex: 1;
    padding: clamp(12px, 2vh, 20px) 0;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 2px;
}

.sidebar-nav ul {
    list-style: none;
}

.nav-item {
    margin-bottom: 4px;
    position: relative;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: clamp(8px, 1.5vh, 12px) clamp(12px, 2vw, 20px);
    color: var(--sidebar-text);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-size: clamp(0.75rem, 1vw, 0.95rem);
    word-break: break-word;
    min-width: 0;
    overflow-wrap: break-word;
}

.nav-item a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active a {
    background: var(--sidebar-active);
    color: white;
    border-left-color: var(--accent);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.badge {
    background: var(--accent);
    color: #000;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: auto;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: clamp(12px, 2vh, 20px);
    border-top: 1px solid #334155;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.sidebar-footer .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 8px 12px;
}

.btn-home-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: clamp(12px, 2vh, 16px) clamp(12px, 2vw, 16px);
    background: linear-gradient(135deg, var(--accent), #1ea346);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.22s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.btn-home-footer:hover {
    background: linear-gradient(135deg, #1ea346, #16a34a);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.btn-home-footer:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.btn-home-footer i {
    font-size: 1.1rem;
}

/* Collapse/Compact Sidebar */
.vendor-sidebar.collapsed {
    width: var(--sidebar-compact);
}

.vendor-sidebar.collapsed .brand-text,
.vendor-sidebar.collapsed .sidebar-footer a,
.vendor-sidebar.collapsed .nav-item a span {
    display: none;
}

.vendor-sidebar.collapsed .nav-item a {
    justify-content: center;
    padding: 12px 8px;
    gap: 0;
}

/* Keep the collapse button visible and clickable when sidebar is compact */
.vendor-sidebar.collapsed .sidebar-header .collapse-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    z-index: 1100;
}

.vendor-sidebar::-webkit-scrollbar {
    width: 6px;
}

.vendor-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.vendor-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Main Content */
.vendor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    width: 0;
    min-width: 0;
}

.vendor-main.sidebar-compact {
    margin-left: var(--sidebar-compact);
}

.vendor-main.sidebar-collapsed {
    margin-left: 0;
}

/* Vendor Header */
.vendor-header {
    background: white;
    padding: clamp(12px, 2vh, 16px) clamp(16px, 3vw, 30px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: clamp(8px, 2vw, 16px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 16px);
    min-width: 0;
    flex: 1;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text);
    cursor: pointer;
    display: none;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    z-index: 1060;
    pointer-events: auto;
}

.sidebar-toggle:hover {
    background: var(--bg);
}

.vendor-header h1 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.header-right {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 16px);
    min-width: 0;
    margin-left: auto;
}

.vendor-search {
    display: flex;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    min-width: 0;
}

.vendor-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.vendor-search input {
    padding: clamp(6px, 1vh, 10px) clamp(10px, 2vw, 15px);
    border: none;
    background: transparent;
    outline: none;
    width: clamp(150px, 20vw, 250px);
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    min-width: 0;
}

.vendor-search input::placeholder {
    color: var(--text-light);
}

.vendor-search button {
    background: none;
    border: none;
    padding: clamp(6px, 1vh, 10px) clamp(8px, 1.5vw, 15px);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.vendor-search button:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
}

.vendor-notifications {
    position: relative;
}

.notification-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    font-size: 1.05rem;
    cursor: pointer;
    position: relative;
    padding: 0;
    border-radius: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.notification-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    opacity: 0.98;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.96));
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.12);
    width: clamp(300px, 90vw, 380px);
    max-height: 520px;
    overflow: hidden;
    display: none;
    z-index: 1000;
    border: 1px solid rgba(17,24,39,0.06);
    backdrop-filter: blur(4px);
}

.notifications-dropdown.show {
    display: block;
}

.notification-header {
    padding: clamp(12px, 2vh, 16px) clamp(12px, 2vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(0,0,0,0.03), rgba(34,197,94,0.06));
}

.notification-header h3 {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
}

.mark-all-read {
    background: transparent;
    border: 1px solid rgba(17,24,39,0.06);
    color: var(--primary);
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 10px;
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}

/* Remover barra de rolagem horizontal indesejada dentro do dropdown */
.notifications-dropdown,
.notifications-dropdown .notification-list,
.notification-item {
    overflow-x: hidden;
}

/* Garantir que o conteúdo quebre linhas corretamente e não force largura */
.notification-item {
    box-sizing: border-box;
    max-width: 100%;
}

.notification-content p {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.notification-item {
    padding: clamp(10px, 1.5vh, 14px) clamp(12px, 2vw, 18px);
    border-bottom: 1px solid rgba(17,24,39,0.04);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: background 0.18s ease, transform 0.12s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(34,197,94,0.04);
    transform: translateX(3px);
}

.notification-item.unread {
    background: linear-gradient(90deg, rgba(0,0,0,0.03), rgba(34,197,94,0.06));
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    box-shadow: 0 6px 18px rgba(34,197,94,0.08);
}

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

.notification-content p {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    margin-bottom: 4px;
    line-height: 1.4;
    word-break: break-word;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.vendor-profile {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 10px);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px clamp(6px, 1.5vw, 12px);
    border-radius: 8px;
    transition: var(--transition);
    min-width: 0;
}

.profile-btn:hover {
    background: var(--bg);
}

.profile-btn img {
    width: clamp(28px, 4vw, 36px);
    height: clamp(28px, 4vw, 36px);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.profile-btn span {
    font-weight: 600;
    color: var(--text);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.profile-btn i {
    color: var(--text-light);
    font-size: 0.8rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.profile-dropdown:hover .profile-btn i {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px 0;
    display: none;
    z-index: 100;
    border: 1px solid var(--border);
    margin-top: 4px;
}

.profile-dropdown:hover .profile-menu {
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: clamp(8px, 1.5vh, 10px) clamp(12px, 2vw, 16px);
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.menu-item:hover {
    background: var(--bg);
    color: var(--primary);
}

.menu-item i {
    width: 16px;
    text-align: center;
    color: var(--text-light);
    flex-shrink: 0;
}

.menu-item:hover i {
    color: var(--primary);
}

.menu-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* Vendor Content */
.vendor-content {
    flex: 1;
    padding: clamp(16px, 3vw, 24px);
    overflow-y: auto;
    background: var(--bg);
}

.vendor-content::-webkit-scrollbar {
    width: 6px;
}

.vendor-content::-webkit-scrollbar-track {
    background: transparent;
}

.vendor-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.vendor-content::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 40vw, 240px), 1fr));
    gap: clamp(16px, 3vw, 24px);
    margin-bottom: clamp(20px, 4vh, 32px);
}

.stat-card {
    background: white;
    padding: clamp(16px, 2.5vh, 24px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vh, 16px);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-icon {
    width: clamp(50px, 8vw, 60px);
    height: clamp(50px, 8vw, 60px);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-info h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--primary);
    line-height: 1;
}

.stat-info p {
    color: var(--text-light);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 500;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    width: fit-content;
    white-space: nowrap;
}

.stat-trend.up {
    color: var(--success);
}

.stat-trend.down {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.stat-trend i {
    font-size: 0.8rem;
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(16px, 3vw, 24px);
    margin-bottom: clamp(20px, 4vh, 32px);
}

.action-card {
    background: white;
    padding: clamp(20px, 3vh, 30px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.action-icon {
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    margin: 0 auto clamp(16px, 2vh, 20px);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.action-card h3 {
    margin-bottom: clamp(8px, 1.5vh, 12px);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

.action-card p {
    color: var(--text-light);
    margin-bottom: clamp(12px, 2vh, 20px);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

/* Content Card */
.content-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: clamp(16px, 2vh, 20px) clamp(16px, 2.5vw, 24px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(100deg, rgba(0, 0, 0, 0.02), transparent);
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h3 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    color: var(--text);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.view-all:hover {
    background: var(--bg);
    text-decoration: underline;
}

.card-body {
    padding: clamp(16px, 2vh, 24px);
    flex: 1;
    overflow-y: auto;
}

/* Properties Table */
.properties-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.properties-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}

.properties-table th {
    text-align: left;
    padding: clamp(8px, 1.5vh, 12px) clamp(8px, 1.5vw, 16px);
    background: var(--bg);
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.properties-table td {
    padding: clamp(8px, 1.5vh, 16px) clamp(8px, 1.5vw, 16px);
    border-bottom: 1px solid var(--border);
}

.properties-table tr:last-child td {
    border-bottom: none;
}

.properties-table tbody tr {
    transition: var(--transition);
}

.properties-table tbody tr:hover {
    background: var(--bg);
}

.property-cell {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
    min-width: 0;
}

.property-image {
    width: clamp(50px, 8vw, 60px);
    height: clamp(50px, 8vw, 60px);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.properties-table tr:hover .property-image img {
    transform: scale(1.05);
}

.property-info {
    flex: 1;
    min-width: 0;
}

.property-info h4 {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary);
    word-break: break-word;
}

.property-location {
    color: var(--text-light);
    font-size: clamp(0.7rem, 1.2vw, 0.8rem);
}

.price-cell {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.status-badge {
    display: inline-block;
    padding: clamp(4px, 0.8vh, 6px) clamp(6px, 1.2vw, 8px);
    border-radius: 20px;
    font-size: clamp(0.65rem, 1.2vw, 0.75rem);
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.inactive {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.action-buttons {
    display: flex;
    gap: clamp(4px, 1vw, 8px);
    flex-shrink: 0;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: clamp(6px, 1vw, 8px);
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    flex-shrink: 0;
}

.btn-icon:hover {
    background: var(--bg);
    color: var(--text);
    transform: scale(1.1);
}

.btn-icon.edit:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: clamp(4px, 1vw, 8px);
    padding: clamp(8px, 1.5vh, 10px) clamp(12px, 2vw, 20px);
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    line-height: 1;
    white-space: nowrap;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    /* Use same visual as sidebar hover: gradient matching site accent */
    background: linear-gradient(200deg, var(--primary), var(--accent));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

/* Keep the Cancel button on the profile screen black on hover */
#my-profile #btnCancelProfile.btn-outline:hover,
#btnCancelProfile.btn-outline:hover {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    transform: translateY(0) !important;
    box-shadow: var(--shadow) !important;
}

/* Small/compact buttons */
.btn.small, .btn-sm {
    padding: 6px 10px;
    font-size: 0.82rem;
    border-radius: 999px;
    min-width: auto;
    box-shadow: none;
}
.btn.small i, .btn-sm i { font-size: 0.9rem; }
.btn-outline.small, .btn-outline.btn-sm { border-width: 1px; padding: 6px 10px; }

/* Ensure buttons inside doc items are compact and aligned */
.doc-list .doc-item .btn {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    height: auto;
    align-self: center;
}
.doc-list .doc-item .btn.btn-outline { border-width:1px; }
.doc-list .doc-item .btn:focus { outline: none; box-shadow: 0 0 0 4px rgba(34,197,94,0.06); }

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

/* Chat styles (Mensagens) */
.chat-card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(12px, 2vw, 20px);
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: clamp(400px, 80vh, 830px);
    min-width: 0;
    width: 100%;
}

.chat-sidebar {
    width: clamp(200px, 30vw, 300px);
    flex: 0 0 clamp(200px, 30vw, 300px);
    border-right: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-list {
    list-style: none;
    padding: clamp(8px, 1.5vh, 12px);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 1vh, 8px);
    overflow-y: auto;
    flex: 1;
}

.chat-item {
    display: flex;
    gap: clamp(8px, 1.5vw, 12px);
    align-items: center;
    padding: clamp(8px, 1.5vh, 10px);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 0;
}

.chat-item:hover {
    background: white;
}

.chat-item.active {
    background: white;
    box-shadow: var(--shadow-sm);
}

.chat-item img {
    width: clamp(36px, 6vw, 44px);
    height: clamp(36px, 6vw, 44px);
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-item .meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-item .meta .name {
    font-weight: 700;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.chat-item .meta .last {
    font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    color: var(--text-light);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.chat-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: clamp(300px, 70vh, 480px);
    min-width: 0;
    overflow: hidden;
}

.chat-header {
    padding: clamp(12px, 2vh, 16px) clamp(12px, 2vw, 20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
    flex-shrink: 0;
}

.chat-messages {
    padding: clamp(12px, 2vh, 20px);
    flex: 1;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.8), transparent 60%);
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vh, 12px);
    min-width: 0;
    align-items: flex-start;
}

.message {
    /* keep messages inside the chat column and allow long words to wrap */
    box-sizing: border-box;
    max-width: min(70%, calc(100% - 40px));
    padding: clamp(8px, 1.5vh, 10px) clamp(8px, 1.5vw, 14px);
    border-radius: 12px;
    line-height: 1.3;
    display: block;
    width: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
}

.message .time {
    display: block;
    margin-top: 4px;
    font-size: clamp(0.7rem, 1.2vw, 0.75rem);
    color: var(--text-light);
}

.message.received {
    background: #f1f5f9;
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.sent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message .file {
    display: block;
    margin-top: 4px;
    color: inherit;
    text-decoration: underline;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
}

/* Ensure images, videos or attachments inside messages don't overflow */
.message img,
.message video,
.message .attachment {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.chat-input-area {
    padding: clamp(8px, 1.5vh, 12px) clamp(12px, 2vw, 16px);
    border-top: 1px solid var(--border);
    display: flex;
    gap: clamp(6px, 1vw, 8px);
    align-items: center;
    background: white;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: clamp(8px, 1.5vh, 10px) clamp(8px, 1.5vw, 12px);
    border-radius: 10px;
    border: 1px solid var(--border);
    outline: none;
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    min-width: 0;
}

.chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.chat-send {
    padding: clamp(8px, 1.5vh, 10px) clamp(10px, 1.5vw, 14px);
    border-radius: 10px;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    white-space: nowrap;
    flex-shrink: 0;
}

.chat-send:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive Design */

/* Extra Large (1920px and up) */
@media (min-width: 1920px) {
    .vendor-container {
        font-size: 18px;
    }
    
    .vendor-sidebar {
        width: 300px;
    }
    
    .vendor-main {
        margin-left: 300px;
    }
}

/* Large (1440px and up) */
@media (min-width: 1440px) {
    :root {
        --sidebar-width: 300px;
    }
    
    .vendor-main {
        margin-left: 300px;
    }
    
    .vendor-sidebar {
        width: 300px;
    }
}

/* Medium-Large (1200px and below) */
@media (max-width: 1200px) {
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vendor-sidebar {
        width: 260px;
    }
    
    .vendor-main {
        margin-left: 260px;
    }
}

/* Medium (992px and below) */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .vendor-sidebar {
        width: 240px;
    }
    
    .vendor-main {
        margin-left: 240px;
    }
    
    .vendor-search input {
        width: clamp(120px, 15vw, 150px);
    }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
    :root {
        font-size: 15px;
    }
    
    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        animation: fadeIn 0.3s ease;
    }
    
    .sidebar-backdrop.active {
        display: block;
        left: 280px;
        width: calc(100% - 280px);
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .vendor-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        z-index: 1050;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .vendor-sidebar.active {
        transform: translateX(0);
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
    }
    
    .vendor-main {
        margin-left: 0 !important;
    }
    
    .vendor-main.sidebar-compact {
        margin-left: 0 !important;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .vendor-header {
        padding: 12px 16px;
        position: relative;
        z-index: 1040;
    }
    
    .sidebar-header {
        padding: 12px 16px;
    }
    
    .sidebar-nav {
        padding: 8px 0;
    }
    
    .nav-item a {
        padding: 10px 14px;
        font-size: 0.9rem;
        white-space: normal;
    }
    
    .sidebar-footer {
        padding: 12px;
    }
    
    .vendor-header {
        padding: 14px 16px;
        gap: 12px;
    }

    .header-left {
        gap: 8px;
    }

    .vendor-header h1 {
        font-size: 1.1rem;
    }

    .header-right {
        gap: 8px;
    }

    .vendor-search {
        display: none;
    }

    .profile-btn span {
        display: none;
    }
    
    .vendor-content {
        padding: 16px;
    }
    
    .sidebar-header .brand-text {
        flex: 1;
    }
    
    .sidebar-header .logo {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .sidebar-header .collapse-btn {
        padding: 4px 6px;
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
        flex-direction: row;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-info h3 {
        font-size: 1.3rem;
    }
    
    .stat-trend {
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-header h2 {
        width: 100%;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .table-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .table-info {
        width: 100%;
        order: 1;
    }
    
    .pagination {
        width: 100%;
        order: 2;
        justify-content: flex-start;
    }
    
    .notifications-dropdown {
        width: calc(100vw - 32px);
        right: auto;
        left: 16px;
    }
    
    .header-right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-card {
        flex-direction: column;
        height: auto;
        min-height: 500px;
    }
    
    .chat-sidebar {
        width: 100%;
        max-height: 200px;
        order: 2;
    }
    
    .chat-panel {
        order: 1;
    }
}

/* Small Mobile (576px and below) */
@media (max-width: 576px) {
    :root {
        font-size: 14px;
    }
    
    .vendor-sidebar {
        width: 260px;
        max-width: 80vw;
    }
    
    .sidebar-header {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .sidebar-header .logo {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .sidebar-header .brand-text h2 {
        font-size: 0.95rem;
    }
    
    .sidebar-header .brand-text p {
        font-size: 0.65rem;
    }
    
    .sidebar-nav {
        padding: 6px 0;
    }
    
    .nav-item {
        margin-bottom: 2px;
    }
    
    .nav-item a {
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .nav-item i {
        font-size: 1rem;
    }
    
    .sidebar-footer {
        padding: 10px;
    }
    
    .sidebar-footer .btn {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .vendor-header {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 14px 16px;
        gap: 8px;
    }

    .header-left {
        order: 0;
        flex: 0 1 auto;
        gap: 8px;
        width: auto;
    }

    .vendor-search {
        flex: 1 1 auto;
        min-width: 0;
        order: 1;
    }

    .vendor-search input {
        width: 100%;
        min-width: 0;
    }

    .header-right {
        order: 2;
        flex: 0 1 auto;
        gap: 8px;
        margin-left: 0;
        width: auto;
    }

    .vendor-header h1 {
        display: none;
    }

    .notification-btn {
        padding: 8px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        font-size: 1rem !important;
    }

    .profile-btn {
        padding: 8px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        gap: 0 !important;
    }

    .profile-btn img {
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
    }

    .profile-btn span {
        display: none !important;
    }

    .profile-btn i {
        display: none !important;
    }

    .profile-menu {
        right: 0 !important;
        min-width: 180px !important;
    }

    .notifications-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 60vh;
        border-radius: 16px 16px 0 0;
        z-index: 1001;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
        flex-direction: row;
        align-items: center;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .stat-info {
        flex: 1;
    }

    .stat-info h3 {
        font-size: 1.3rem;
    }

    .stat-trend {
        margin-top: 0;
        width: auto;
        justify-content: flex-end;
        flex-shrink: 0;
    }

    .card-body {
        padding: 16px;
    }
    
    .properties-table {
        font-size: 0.8rem;
    }
    
    .properties-table th,
    .properties-table td {
        padding: 6px 8px;
    }
    
    .property-cell {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .chat-sidebar {
        max-height: 150px;
    }
    
    .chat-input-area {
        flex-wrap: wrap;
    }
    
    .chat-input {
        width: calc(100% - 50px);
    }
}

/* Extra Small (480px and below) */
@media (max-width: 480px) {
    :root {
        font-size: 13px;
    }
    
    .vendor-header {
        gap: 4px;
    }
    
    .header-left {
        gap: 4px;
    }
    
    .vendor-header h1 {
        font-size: 0.9rem;
        flex: 1;
    }
    
    .sidebar-toggle {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    .stat-card {
        padding: 12px;
        gap: 8px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-info h3 {
        font-size: 1.1rem;
    }
    
    .action-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .action-card h3 {
        font-size: 1rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-header h3 {
        width: 100%;
    }
    
    .property-image {
        width: 40px;
        height: 40px;
    }
    
    .chat-sidebar {
        max-height: 120px;
    }
    
    .chat-input {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .chat-send {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print styles */
@media print {
    .vendor-sidebar,
    .vendor-header {
        display: none;
    }
    
    .vendor-main {
        margin-left: 0;
    }
    
    .vendor-content {
        padding: 0;
        background: white;
    }
    
    .stat-card,
    .content-card,
    .action-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */

/* Add Property Form Styles */
.content-section {
    animation: fadeIn 0.3s ease;
}

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

.section-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-light);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-light);
}

.property-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-section {
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent), var(--primary));
    border-radius: 2px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="time"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: white;
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="time"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.form-group small {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* File Upload Area */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--accent);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(34, 197, 94, 0.02);
}

.file-upload-area:hover {
    background: rgba(34, 197, 94, 0.05);
    border-color: var(--accent-dark);
}

.file-upload-area input[type="file"] {
    display: none;
}

.upload-placeholder {
    pointer-events: none;
    color: var(--text-light);
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.upload-placeholder p {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

/* Image Preview Grid */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--border);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.preview-item:hover .remove-btn {
    opacity: 1;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.feature-checkbox:hover {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.02);
}

.feature-checkbox input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.feature-checkbox input[type="checkbox"]:checked {
    background-color: var(--accent);
}

.feature-checkbox span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 500;
}

.feature-checkbox span i {
    font-size: 1.1rem;
    color: var(--accent);
}

.feature-checkbox input[type="checkbox"]:checked ~ span {
    color: var(--accent);
    font-weight: 600;
}

/* Tags Container */
.tags-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 16px;
}

.tag-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tag-group h4 {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
    font-weight: 500;
    color: var(--text);
}

.tag-checkbox:hover {
    border-color: var(--accent);
    background: rgba(34, 197, 94, 0.02);
}

.tag-checkbox input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
    accent-color: var(--accent);
}

.tag-checkbox input[type="checkbox"]:checked ~ span {
    color: var(--accent);
    font-weight: 600;
}

.selected-tags {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.selected-tags h4 {
    font-weight: 700;
    color: var(--text);
    margin: 0;
    font-size: 0.95rem;
}

.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.tag-badge button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag-badge button:hover {
    transform: scale(1.2);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}

.form-actions .btn {
    min-width: 150px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius);
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .tags-container {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .form-actions {
        flex-direction: column;
    }

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

/* Landscape mode adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .vendor-header {
        padding: 8px 12px;
    }
    
    .vendor-content {
        padding: 8px;
    }
    
    .stat-card {
        padding: 12px;
    }
}

/* Fixes for Add Property form: prevent fields being cut, ensure full-width inputs and proper padding */
.content-card {
    /* allow inner elements (focus outlines, shadows) to be visible */
    overflow: visible;
}

.content-card > .property-form {
    padding: clamp(16px, 2vw, 24px);
    box-sizing: border-box;
}

.property-form {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.form-group {
    min-width: 0; /* prevent grid children from overflowing their column */
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="time"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
}

@media (max-width: 768px) {
    .content-card > .property-form {
        padding: 12px;
    }
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(20px, 4vh, 32px);
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 20px);
}

.dashboard-header h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.dashboard-header p {
    color: var(--text-light);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.dashboard-actions {
    display: flex;
    gap: clamp(8px, 1.5vw, 12px);
    flex-wrap: wrap;
}

/* Stats Grid Enhancement */

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(16px, 3vw, 24px);
    margin-bottom: clamp(20px, 4vh, 32px);
}

/* Chart Card */
.chart-card {
    min-height: 400px;
}

.chart-placeholder {
    padding: clamp(16px, 2vh, 24px) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.chart-svg {
    width: 100%;
    height: 200px;
}

.chart-legend {
    display: flex;
    gap: clamp(12px, 2vw, 20px);
    justify-content: center;
    flex-wrap: wrap;
    padding-top: clamp(12px, 2vh, 16px);
    border-top: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: var(--text-light);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Top Properties List */
.top-properties-list {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vh, 16px);
}

.property-rank-item {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 16px);
    padding: clamp(12px, 2vh, 16px);
    background: var(--bg);
    border-radius: 8px;
    transition: var(--transition);
}

.property-rank-item:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(34, 197, 94, 0.05));
}

.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: clamp(1rem, 2vw, 1.2rem);
    flex-shrink: 0;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-info h4 {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.rank-info p {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    color: var(--text-light);
}

.rank-stats {
    display: flex;
    gap: clamp(8px, 1.5vw, 12px);
    flex-shrink: 0;
}

.rank-stats .views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 600;
    color: var(--text);
}

.rank-stats i {
    color: var(--accent);
}

/* Recent Section */
.recent-section {
    display: grid;
    gap: clamp(16px, 3vw, 24px);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vh, 16px);
}

.activity-item {
    display: flex;
    gap: clamp(12px, 2vw, 16px);
    padding: clamp(12px, 2vh, 16px);
    border-radius: 8px;
    background: var(--bg);
    transition: var(--transition);
}

.activity-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(40px, 6vw, 48px);
    height: clamp(40px, 6vw, 48px);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(34, 197, 94, 0.1));
    color: var(--primary);
    font-size: clamp(1rem, 2vw, 1.2rem);
    flex-shrink: 0;
}

.activity-icon.new-message {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 197, 94, 0.05));
    color: #3b82f6;
}

.activity-icon.milestone {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(34, 197, 94, 0.05));
    color: var(--warning);
}

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

.activity-content h4 {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.activity-content p {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: var(--text-light);
    margin-bottom: 8px;
}

.activity-time {
    display: inline-block;
    font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    color: var(--muted);
    font-weight: 500;
}

/* Filter Period Select */
.filter-period {
    padding: clamp(6px, 1vh, 8px) clamp(8px, 1.5vw, 12px);
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    color: var(--text);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-period:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.filter-period:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for dashboard */
@media (max-width: 1024px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 0;
        margin-bottom: 16px;
    }
    
    .dashboard-header h2 {
        font-size: 1.3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .action-card {
        padding: 16px;
    }
    
    .property-rank-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .rank-info {
        width: 100%;
    }
    
    .rank-stats {
        justify-content: center;
        width: 100%;
    }
}

/* Styles para Statistics - refinados para combinar com o estilo do site */
.statistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 3vw, 24px);
    margin-bottom: clamp(16px, 3vh, 24px);
}

.statistics-grid .content-card {
    background: var(--card);
    border: 1px solid var(--border);
}

.revenue-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.rev-item {
    background: var(--card);
    padding: 14px;
    border-radius: 10px;
    flex: 1;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
}

.rev-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.rev-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.small-chart {
    margin-top: 12px;
}

.ads-performance .data-table th,
.ads-performance .data-table td {
    padding: 12px 14px;
}

.top-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.top-product-item .rank {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.top-product-item .info h4 {
    margin: 0;
    font-size: 1rem;
}

.top-product-item .rev {
    margin-left: auto;
    font-weight: 700;
    color: var(--primary);
}

.occupancy-calendar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow: auto;
}

.occupancy-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.occ-title {
    width: 180px;
    font-weight: 700;
    color: var(--text);
}

.occ-strip {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.occ-day {
    min-width: 28px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 6px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.occ-day.booked {
    background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.04));
    color: var(--primary);
    font-weight: 700;
    border-color: rgba(34,197,94,0.25);
}

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

.user-metrics-header .rating {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

.recent-comments .comment-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.pending-item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.pending-item.overdue {
    color: var(--danger);
    font-weight: 700;
}

.insight-item {
    padding: 10px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text);
}

.insight-item i { color: var(--accent); }

@media (max-width: 900px) {
    .statistics-grid { grid-template-columns: 1fr; }
    .analytics-grid { grid-template-columns: 1fr; }
}

/* Profile screen styles — polished to match site visual language */
.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    align-items: start;
    margin-top: 16px;
}

/* shared card look */
.profile-left .content-card,
.profile-right .content-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-summary .card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(0,0,0,0.04);
}

.avatar-change { display:block; text-align:center; }
.avatar-change .btn { margin-top:8px; padding:7px 12px; font-size:0.9rem; }

.profile-summary h3 { margin: 6px 0 0 0; font-size: 1.05rem; color:var(--text); }
.profile-summary .muted { color: var(--text-light); font-size: 0.9rem; }

.profile-actions { display:flex; gap:8px; margin-top:8px; }
.profile-actions .btn { padding:7px 12px; font-size:0.9rem; }

.doc-list { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.doc-list .doc-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border-radius:12px; border:1px solid var(--border); background: var(--card); }
.doc-list .doc-item { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:12px; border-radius:12px; border:1px solid var(--border); background: var(--card); }
.doc-list .doc-item .status { font-size:0.825rem; padding:6px 10px; border-radius:999px; }
.doc-list .doc-item .status.ok { background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.04)); color:var(--accent); font-weight:700; border:1px solid rgba(34,197,94,0.08); }
.doc-list .doc-item .status.missing { color:var(--text-light); background:transparent; border:1px dashed rgba(0,0,0,0.04); }

/* New layout: put actions under the document value */
.doc-list .doc-item .doc-main { display:flex; flex-direction:column; gap:8px; }
.doc-list .doc-item .doc-actions { display:flex; gap:8px; justify-content:flex-end; align-items:center; }
.doc-list .doc-item .doc-actions .btn { margin-left:8px; }
.doc-list .doc-item strong { color:var(--text); margin-right:10px; }

/* Right column: forms */
.profile-right .card-body { padding: 18px; }
.profile-right .profile-form .form-row { display:flex; gap:12px; }
.profile-right .profile-form .form-group { flex:1; display:flex; flex-direction:column; gap:8px; }
.profile-right .profile-form label { font-size:0.86rem; color:var(--text-light); }
.profile-right .profile-form input, .profile-right .profile-form textarea { padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:transparent; color:var(--text); box-shadow:none; }
.profile-right .profile-form input:focus, .profile-right .profile-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(34,197,94,0.06); }
.profile-right .profile-form textarea { resize:vertical; min-height:96px; }
.profile-right .small-form .form-group input { padding:10px 12px; border:1px solid var(--border); border-radius:10px; }

.content-card .form-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:14px; }

.content-card.profile-summary { text-align:center; padding-bottom:8px; }

/* subtle micro-typography */
.profile-right .card-header h3, .profile-left .card-header h3 { font-size:1rem; margin:0; }

@media (max-width:1000px) {
    .profile-grid { grid-template-columns: 1fr; }
    .profile-left { order: 2; }
}

/* Validation and payments styles */
.input-error { border-color: var(--danger) !important; box-shadow: 0 0 0 4px rgba(239,68,68,0.06) !important; }
.error-text { color: var(--danger); font-size: 0.85rem; margin-top:6px; }

.payments-list { display:flex; flex-direction:column; gap:8px; }
.payment-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px; border-radius:10px; border:1px solid var(--border); background:var(--card); }
.payment-main { display:flex; flex-direction:column; gap:4px; }
.payment-type { font-weight:700; color:var(--accent); font-size:0.85rem; }
.payment-label { font-weight:600; color:var(--text); }
.payment-value { color:var(--text-light); font-size:0.9rem; }
.payment-actions .btn-sm { padding:6px 8px; font-size:0.8rem; }

@media (max-width:1000px) {
    .profile-grid { grid-template-columns: 1fr; }
    .profile-left { order: 2; }
}

