/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Login Styles */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.login-header h1 i {
    color: #667eea;
    margin-right: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    margin-top: 12px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #a0aec0;
    margin-top: 12px;
    padding: 5px;
}

.toggle-password:hover {
    color: #667eea;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #1a202c;
    color: white;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #2d3748;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.sidebar-header h2 i {
    color: #667eea;
    margin-right: 10px;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
    list-style: none;
}

.menu-item {
    margin-bottom: 5px;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
    margin-right: 20px;
}

.menu-item a:hover,
.menu-item.active a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.menu-item a i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    font-size: 16px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #2d3748;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.user-info img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border-color: #4f46e5;
}

/* Specific styles for SVG avatar */
#user-avatar {
    background: transparent;
}

/* Users count badge for plans table */
.users-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(66, 153, 225, 0.2);
}

.users-count-badge i {
    font-size: 10px;
}

.users-count-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
    transition: all 0.2s ease;
}

/* Property form styles */
.images-management {
    margin-top: 10px;
}

.existing-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.existing-image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.existing-image-item.property-photo-container {
    position: relative;
}

.existing-image-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.existing-image-item .property-photo.blurred {
    filter: blur(15px);
    cursor: default;
}

.existing-image-item .image-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s;
}

.image-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.image-remove-btn:hover {
    background: rgba(239, 68, 68, 1);
}

.amenities-management {
    margin-top: 10px;
}

.selected-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.amenity-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.amenity-tag .remove-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
}

.amenity-tag .remove-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.amenity-input-group {
    display: flex;
    gap: 10px;
    align-items: end;
}

.amenity-input-group input {
    flex: 1;
}

.common-amenities {
    margin-top: 15px;
}

.common-amenities h6 {
    margin-bottom: 10px;
    color: #4a5568;
    font-size: 14px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.amenity-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amenity-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.user-details span {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.user-details small {
    color: #a0aec0;
    font-size: 12px;
}

/* Estilos para seleção de usuário */
.user-search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.show {
    display: block;
}

.user-search-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-search-item:hover {
    background-color: #f8f9fa;
}

.user-search-item:last-child {
    border-bottom: none;
}

.user-search-name {
    font-weight: 600;
    color: #333;
    display: block;
}

.user-search-email {
    color: #666;
    font-size: 14px;
    display: block;
}

.user-search-plan {
    color: #667eea;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.selected-user-info {
    margin-top: 10px;
}

.user-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: 600;
    color: #333;
}

.user-email {
    color: #666;
    font-size: 14px;
}

.user-plan {
    color: #667eea;
    font-size: 12px;
    font-weight: 500;
}

.user-limit {
    color: #28a745;
    font-size: 12px;
}

.user-limit.no-limit {
    color: #dc3545;
}

.remove-user-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.remove-user-btn:hover {
    background: #c82333;
}

/* Estilos para página de detalhes do usuário */
#page-user-details {
    background: transparent !important;
}

#page-user-details .user-details-content {
    background: transparent !important;
}

.btn-back {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 16px;
}

.btn-back:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.user-details-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0; /* Remover padding para permitir foto de capa full-width */
}

.user-photos-section {
    margin: 0; /* Remover todas as margens */
    padding: 0; /* Remover todos os paddings */
    background: transparent; /* Garantir fundo transparente */
}

.cover-photo-container {
    position: relative;
    background: transparent; /* Fundo transparente */
    border-radius: 12px; /* Border radius elegante */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Sombra sutil */
    overflow: hidden;
    margin: -24px -24px -24px -24px; /* Expandir para ocupar toda a largura e eliminar barra inferior */
}

.cover-photo {
    position: relative;
    height: 250px; /* Aumentar altura */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px; /* Border radius consistente */
    margin: 0; /* Sem margens */
    padding: 0; /* Sem padding */
}

/* Overlay para melhorar legibilidade do texto */
.cover-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    pointer-events: none;
}

.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    opacity: 0.8;
}

.cover-photo-placeholder i {
    font-size: 48px;
}

.cover-photo-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.photo-action-btn {
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-action-btn:hover {
    background: rgba(0,0,0,0.8);
}

.photo-action-btn.delete {
    background: rgba(220,53,69,0.8);
}

.photo-action-btn.delete:hover {
    background: rgba(220,53,69,1);
}

.profile-photo-container {
    display: flex;
    align-items: end;
    gap: 24px;
    padding: 0px 24px 24px 24px; /* Padding transparente para espaçamento */
    margin-top: -150px; /* Sobreposição mais suave */
    position: relative;
    z-index: 2;
    background: transparent; /* Fundo transparente */
}

.profile-photo {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    background: #f7fafc;
    flex-shrink: 0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #a0aec0;
}

.profile-photo-placeholder i {
    font-size: 48px;
}

.profile-photo-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.profile-photo .photo-action-btn {
    width: 32px;
    height: 32px;
}

.user-basic-info {
    position: relative;
    z-index: 3;
}

.user-basic-info h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    -webkit-text-stroke: 0.5px rgba(0,0,0,0.3);
}

.user-basic-info p {
    margin: 0 0 12px 0;
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-weight: 500;
}

.user-basic-info .type-badge {
    background: rgba(255,255,255,0.9);
    color: #2d3748;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

.user-details-tabs {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 45px 24px 0 24px; /* Adicionar margem superior e lateral */
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #718096;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.tab-btn:hover {
    background: #edf2f7;
    color: #4a5568;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.tab-content {
    display: none;
    padding: 24px;
}

.tab-content.active {
    display: block;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.info-header h3 {
    margin: 0;
    color: #2d3748;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.info-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.info-card.full-width {
    grid-column: 1 / -1;
}

.info-card h4 {
    margin: 0 0 16px 0;
    color: #2d3748;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    gap: 12px;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 500;
    color: #4a5568;
}

.info-item span {
    color: #2d3748;
    font-weight: 500;
    word-break: break-all;
    word-wrap: break-word;
    max-width: 200px;
    overflow-wrap: break-word;
}

/* Estilo específico para Firebase UID */
.firebase-uid {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #f7fafc;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    word-break: break-all;
    line-height: 1.4;
}

.properties-header {
    margin-bottom: 20px;
}

.properties-filters {
    display: flex;
    gap: 16px;
}

.properties-filters select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #4a5568;
}

.user-properties-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.subscription-info {
    max-width: 600px;
}

.subscription-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
}

.subscription-card h4 {
    margin: 0 0 16px 0;
    color: #2d3748;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Estilos para modal de edição de usuário */
.user-info-form {
    max-width: 100%;
}

.user-info-form .form-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.user-info-form .form-section h4 {
    margin: 0 0 16px 0;
    color: #2d3748;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.user-info-form .form-group {
    margin-bottom: 16px;
}

.user-info-form .form-group:last-child {
    margin-bottom: 0;
}

.user-info-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #4a5568;
}

.user-info-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.user-info-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.user-info-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #2d3748;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.checkbox-group small {
    color: #718096;
    font-size: 12px;
    margin-left: 26px;
    margin-top: -2px;
}

.advertiser-status-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.advertiser-status-info .status-badge {
    font-size: 11px;
    padding: 3px 8px;
}

.advertiser-status-info #advertiser-status-text {
    font-weight: 500;
    color: #4a5568;
}

.logout-btn {
    padding: 8px;
    background: #2d3748;
    border: none;
    border-radius: 8px;
    color: #a0aec0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #e53e3e;
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.main-content.expanded {
    margin-left: 80px;
}

/* Header */
.header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: #4a5568;
    cursor: pointer;
    margin-right: 20px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #f7fafc;
    color: #667eea;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 40px 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    width: 300px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.notifications {
    position: relative;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 18px;
    color: #4a5568;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: #f7fafc;
    color: #667eea;
}

.notification-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow: hidden;
}

.notification-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.notification-header button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 12px;
}

.no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: #a0aec0;
}

.no-notifications i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

/* Content Area */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.stat-icon i {
    font-size: 24px;
    color: white;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}

.stat-info p {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
}

.stat-change.positive {
    background: #c6f6d5;
    color: #22543d;
}

.stat-change.negative {
    background: #fed7d7;
    color: #c53030;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
}

/* Recent Activities */
.recent-activities {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recent-activities h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.no-activities {
    text-align: center;
    color: #a0aec0;
    padding: 40px 0;
}

.no-activities i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.page-header-left h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 5px;
}

.page-header-left p {
    color: #4a5568;
    font-size: 14px;
}

.page-header-right {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: #667eea;
    color: #667eea;
}

/* Table Filters */
.table-filters {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group select,
.filter-group input {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-group input[type="text"] {
    min-width: 250px;
}

/* Data Table */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #4a5568;
}

.data-table tr:hover {
    background: #f8fafc;
}

.loading-row {
    text-align: center;
    color: #a0aec0;
    padding: 40px !important;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background: #c6f6d5;
    color: #22543d;
}

.status-draft {
    background: #fed7d7;
    color: #c53030;
}

.status-sold {
    background: #bee3f8;
    color: #2a69ac;
}

.status-rented {
    background: #fbb6ce;
    color: #97266d;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.action-btn.edit {
    background: #667eea;
    color: white;
}

.action-btn.delete {
    background: #e53e3e;
    color: white;
}

.action-btn.view {
    background: #38a169;
    color: white;
}

.action-btn.analyze {
    background: #10b981;
    color: white;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Table Pagination */
.table-pagination {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    color: #4a5568;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-controls button {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
}

.pagination-controls button:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .content {
        padding: 20px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .page-header-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select,
    .filter-group input {
        width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 800px;
    }
    
    .table-pagination {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .content {
        padding: 15px;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .notification-dropdown {
        width: 280px;
        right: -20px;
    }
}

/* Tabs */
.tabs-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 20px;
}

.tabs-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: #edf2f7;
    color: #667eea;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Chart cards com altura fixa */
.chart-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 350px; /* Altura fixa para os cards */
    display: flex;
    flex-direction: column;
}

.chart-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    flex-shrink: 0; /* Não permite que o título encolha */
}

.chart-card canvas {
    flex: 1; /* Canvas ocupa o espaço restante */
    max-height: 280px; /* Altura máxima do canvas */
    width: 100% !important;
    height: auto !important;
}

.analytics-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.analytics-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
}

.analytics-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* Status badges for different contexts */
.status-pending {
    background: #fed7d7;
    color: #c53030;
}

.status-approved {
    background: #c6f6d5;
    color: #22543d;
}

.status-rejected {
    background: #fed7d7;
    color: #c53030;
}

.status-blocked {
    background: #fed7d7;
    color: #c53030;
}

.status-inactive {
    background: #e2e8f0;
    color: #4a5568;
}

.status-canceled {
    background: #fed7d7;
    color: #c53030;
}

.status-grace {
    background: #fbb6ce;
    color: #97266d;
}

/* Type badges */
.type-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.type-admin {
    background: #667eea;
    color: white;
}

.type-advertiser {
    background: #38a169;
    color: white;
}

.type-user {
    background: #e2e8f0;
    color: #4a5568;
}

.type-cpf {
    background: #3182ce;
    color: white;
}

.type-cnpj {
    background: #ed8936;
    color: white;
}

/* Action buttons for different contexts */
.action-btn.approve {
    background: #38a169;
    color: white;
}

.action-btn.reject {
    background: #e53e3e;
    color: white;
}

.action-btn.block {
    background: #ed8936;
    color: white;
}

.action-btn.unblock {
    background: #3182ce;
    color: white;
}

.action-btn.promote {
    background: #667eea;
    color: white;
}

.action-btn.sync {
    background: #38a169;
    color: white;
}

/* Enhanced button styles for modal actions */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-warning:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-warning:hover::before {
    left: 100%;
}

.btn-warning i {
    font-size: 16px;
    animation: exchangeIcon 2s ease-in-out infinite;
}

@keyframes exchangeIcon {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

/* Enhanced primary button */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Enhanced success button */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Enhanced danger button */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Enhanced secondary button */
.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(107, 114, 128, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

/* Enhanced info button */
.btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
}

.btn-info:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* Document viewer */
.document-viewer {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.document-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.document-img:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

/* Upgrade details modal */
.upgrade-details {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #667eea;
}

.upgrade-details .detail-section {
    margin-bottom: 20px;
}

.upgrade-details .detail-section:last-child {
    margin-bottom: 0;
}

.upgrade-details .detail-section h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upgrade-details .detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.upgrade-details .detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upgrade-details .detail-item label {
    font-weight: 500;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upgrade-details .detail-item span {
    color: #1f2937;
    font-weight: 500;
}

/* Documents grid */
.documents-grid {
    width: 100%;
}

.document-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.document-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.document-thumbnail {
    width: 100px;
    height: 100px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    position: relative;
}

.document-thumbnail:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.document-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.document-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9ca3af;
    font-size: 24px;
}

.document-label {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    margin: 0;
    font-weight: 500;
}

.document-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-thumbnail:hover .document-overlay {
    opacity: 1;
}

.document-overlay .download-btn {
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 4px;
}

.upgrade-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #e2e8f0;
}

.upgrade-details .detail-row:last-child {
    border-bottom: none;
}

.upgrade-details .detail-label {
    font-weight: 500;
    color: #4a5568;
}

.upgrade-details .detail-value {
    color: #1a202c;
}

/* Status change modal */
.status-change-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.current-status-info {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.current-status-info h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.status-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.status-info-grid .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-info-grid .info-item label {
    font-weight: 500;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-info-grid .info-item span {
    color: #1f2937;
    font-weight: 500;
}

.new-status-selection h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.status-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.status-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.status-option:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.status-option:hover::before {
    left: 100%;
}

.status-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.status-option input[type="radio"]:checked {
    animation: radioCheck 0.3s ease-out;
}

@keyframes radioCheck {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.status-option input[type="radio"]:checked + .status-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    animation: statusBadgePulse 0.5s ease-out;
}

@keyframes statusBadgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

.status-option:disabled,
.status-option[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
    border-color: #d1d5db;
}

.status-option:disabled:hover,
.status-option[disabled]:hover {
    transform: none;
    box-shadow: none;
    border-color: #d1d5db;
    background: #f9fafb;
}

.rejection-reason-section {
    background: #fef2f2;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

.rejection-reason-section h4 {
    margin: 0 0 12px 0;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
}

.rejection-reason-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    background: white;
}

.rejection-reason-section textarea:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.warning-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    color: #92400e;
}

.warning-message i {
    color: #f59e0b;
    font-size: 16px;
    margin-top: 2px;
}

.warning-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Verification edit form */
.verification-edit-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.form-section h4 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h4 i {
    color: #3b82f6;
    font-size: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Document edit container */
.document-edit-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.document-edit-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.document-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.document-edit-title {
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.document-edit-actions {
    display: flex;
    gap: 8px;
}

.document-preview-container {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.document-current-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.document-current-image:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.document-upload-area {
    flex: 1;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.document-upload-area:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.document-upload-area.dragover {
    border-color: #3b82f6;
    background: #dbeafe;
}

.upload-icon {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.upload-text {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.upload-hint {
    color: #9ca3af;
    font-size: 12px;
}

.file-input {
    display: none;
}

/* Download buttons */
.download-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.download-btn.individual {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.download-btn.individual:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* Plan card styling */
.plan-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.plan-card.featured {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea05 0%, #764ba205 100%);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.plan-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.plan-price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.plan-features li {
    padding: 5px 0;
    color: #4a5568;
    display: flex;
    align-items: center;
}

.plan-features li::before {
    content: '✓';
    color: #38a169;
    font-weight: bold;
    margin-right: 8px;
}

/* Responsive updates */
@media (max-width: 768px) {
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: 1px solid #e2e8f0;
    }
    
    .tab-btn.active {
        border-bottom: 2px solid #667eea;
        border-right: none;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-tables {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .document-viewer {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Loading and empty states */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #4a5568;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* Payment Gateway Settings */
.payment-gateways {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.gateway-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.gateway-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.gateway-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.gateway-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.gateway-info p {
    font-size: 14px;
    color: #4a5568;
    margin: 0;
}

.gateway-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    position: relative;
}

.status-indicator.connected {
    background: #38a169;
}

.status-indicator.disconnected {
    background: #e53e3e;
}

.status-indicator.testing {
    background: #ed8936;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.gateway-settings {
    padding: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Checkbox styling */
.checkbox-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.gateway-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.gateway-actions button {
    flex: 1;
}

/* Payment Stats Section */
.payment-stats-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.payment-stats-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gateway-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .gateway-actions {
        flex-direction: column;
    }
    
    .gateway-actions button {
        flex: none;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.hidden { display: none !important; }
.visible { display: block !important; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Enhanced stat cards for upgrades */
.enhanced-card {
    position: relative;
    overflow: visible;
}

.enhanced-card .stat-info {
    flex: 1;
}

.stat-detail {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.stat-trend {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}

.trend-up {
    color: #10b981;
}

.trend-down {
    color: #ef4444;
}

.stat-trend span {
    color: inherit;
}

/* Enhanced stats grid for 4 cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Modal styles for upgrade details */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: modalContentSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes modalContentSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Special styling for change status modal */
#change-status-modal .modal-content {
    max-width: 500px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 24px;
}

.upgrade-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
}

.detail-section h4 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.document-viewer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.document-preview {
    background: white;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #6b7280;
}

.document-preview p {
    margin: 12px 0 0 0;
    font-size: 14px;
}

.document-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.notes-content {
    background: white;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Plan Form Styles */
.plan-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.plan-form .form-group {
    display: flex;
    flex-direction: column;
}

.plan-form .form-group.full-width {
    grid-column: 1 / -1;
}

.plan-form .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.plan-form .form-control {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.plan-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.plan-form .form-control:invalid {
    border-color: #ef4444;
}

.plan-form .form-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    font-style: italic;
}

.plan-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.plan-form .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.plan-form .checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.plan-form .checkmark {
    margin-left: 8px;
}

/* Delete Confirmation Modal Styles */
.delete-confirmation {
    text-align: center;
    padding: 20px;
}

.warning-icon {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 20px;
}

.delete-confirmation h4 {
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.delete-confirmation p {
    color: #6b7280;
    margin-bottom: 20px;
}

.plan-details {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-align: left;
    margin-top: 20px;
    line-height: 1.6;
}

.plan-details strong {
    color: #374151;
}

/* Property Modal Styles */
.property-details {
    padding: 0;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.property-main-info h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.property-main-info p {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 14px;
}

.property-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.property-price span:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #059669;
}

.business-type {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
}

.property-photos {
    margin-bottom: 24px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Photo Blur Styles */
.property-photo-container {
    position: relative;
}

.property-photo.blurred {
    filter: blur(15px);
    cursor: default;
}

.property-photo:not(.blurred) {
    cursor: pointer;
}

.property-photo-container .image-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s;
}

.property-photo-container:hover .image-blur-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* Property Thumbnail Blur (Permanent - No Remove Option) */
.property-thumbnail-container {
    position: relative;
    display: inline-block;
}

.property-thumbnail.blurred-permanent {
    filter: blur(15px);
    cursor: default;
}

.property-info-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-section h5 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
}

.info-item span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amenity-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Property Form Styles */
.property-form .form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.property-form .form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.property-form .form-section h5 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.property-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.property-form .form-group {
    display: flex;
    flex-direction: column;
}

.property-form .form-group.full-width {
    grid-column: 1 / -1;
}

.property-form .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.property-form .form-control {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.property-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.property-form .form-control:invalid {
    border-color: #ef4444;
}

.property-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .property-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .property-form .form-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* ==================== CHAT STYLES ==================== */

.chat-container {
    display: flex;
    height: calc(100vh - 200px);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Painel de Conversas */
.conversations-panel {
    width: 350px;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.conversations-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.conversations-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2d3748;
}

.count-badge {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.conversations-search {
    padding: 1rem;
    position: relative;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.conversations-search input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.conversations-search i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.conversation-item:hover {
    background: #edf2f7;
}

.conversation-item.active {
    background: #667eea;
    color: white;
}

.conversation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-participants {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-property {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-item.active .conversation-property {
    color: rgba(255, 255, 255, 0.8);
}

.conversation-last-message {
    font-size: 0.8rem;
    color: #a0aec0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-item.active .conversation-last-message {
    color: rgba(255, 255, 255, 0.7);
}

.conversation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.conversation-time {
    font-size: 0.7rem;
    color: #a0aec0;
}

.conversation-item.active .conversation-time {
    color: rgba(255, 255, 255, 0.7);
}

.unread-badge {
    background: #e53e3e;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

/* Painel de Mensagens */
.messages-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.messages-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.conversation-info .participants {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.conversation-info .participants img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.conversation-info .participants span {
    font-weight: 600;
    color: #2d3748;
}

.conversation-info .participants i {
    color: #a0aec0;
    font-size: 0.8rem;
}

.property-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #718096;
}

.conversation-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-icon:hover {
    background: #cbd5e0;
}

.messages-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.no-conversation-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #a0aec0;
    text-align: center;
}

.no-conversation-selected i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-conversation-selected h3 {
    margin: 0 0 0.5rem 0;
    color: #4a5568;
}

.no-conversation-selected p {
    margin: 0;
    font-size: 0.9rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.message.sent {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.message-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.message.sent .message-content {
    align-items: flex-end;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 18px;
    background: #f1f5f9;
    color: #2d3748;
    word-wrap: break-word;
}

.message.sent .message-bubble {
    background: #667eea;
    color: white;
}

.message-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #a0aec0;
}

.message.sent .message-info {
    flex-direction: row-reverse;
}

.loading-conversations,
.messages-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #a0aec0;
}

.loading-conversations i,
.messages-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Responsive para chat */
@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
        height: auto;
    }
    
    .conversations-panel {
        width: 100%;
        max-height: 300px;
    }
    
    .messages-panel {
        min-height: 400px;
    }
}

/* ==================== MAP STYLES ==================== */

/* Map Filters */
.map-filters {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
}

.filter-group .form-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.filter-group .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Map Stats */
.map-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.map-stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.map-stat-item i {
    font-size: 2rem;
    color: #667eea;
}

.map-stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.map-stat-item small {
    font-size: 0.875rem;
    color: #718096;
}

/* Map Container */
.map-container {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: calc(100vh - 450px);
    min-height: 500px;
}

#property-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.map-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.map-loading p {
    color: #4a5568;
    font-weight: 500;
}

/* Custom Marker Popup */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 280px;
}

.map-popup-content {
    padding: 0;
}

.map-popup-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.map-popup-info {
    padding: 1rem;
}

.map-popup-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.map-popup-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.75rem;
}

.map-popup-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #718096;
}

.map-popup-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.map-popup-actions {
    display: flex;
    gap: 0.5rem;
}

.map-popup-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.map-popup-btn-primary {
    background: #667eea;
    color: white;
}

.map-popup-btn-primary:hover {
    background: #5568d3;
}

.map-popup-btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.map-popup-btn-secondary:hover {
    background: #edf2f7;
}

/* Property Details Sidebar */
.map-property-details {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.map-property-details.active {
    transform: translateX(0);
}

.close-details {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.close-details:hover {
    background: #f7fafc;
    transform: scale(1.1);
}

.property-details-content {
    padding: 1.5rem;
}

/* Custom Pin Colors */
.marker-verde {
    background-color: #48bb78;
}

.marker-laranja {
    background-color: #ed8936;
}

.marker-vermelha {
    background-color: #f56565;
}

.marker-roxo {
    background-color: #9f7aea;
}

/* Responsive Map */
@media (max-width: 768px) {
    .map-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .map-container {
        height: 400px;
        min-height: 400px;
    }
    
    .map-property-details {
        width: 100%;
    }
}

/* ==================== SUBMENU STYLES ==================== */
.menu-item.has-submenu {
    position: relative;
}

.submenu {
    list-style: none;
    padding-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.menu-item.has-submenu.active .submenu {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

.submenu li {
    padding: 0;
}

.submenu li a {
    padding: 0.75rem 1rem 0.75rem 3rem;
    display: block;
    color: #718096;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.submenu li a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding-left: 3.25rem;
}

.submenu li.active a,
.submenu li a.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    font-weight: 500;
}

.submenu-arrow {
    float: right;
    transition: transform 0.3s;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.menu-item.has-submenu.active .submenu-arrow {
    transform: rotate(180deg);
}

/* ==================== PROPERTY SETTINGS PAGE ==================== */
.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
}

.settings-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #718096;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.settings-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.settings-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.settings-header h3 {
    font-size: 1.25rem;
    color: #2d3748;
}

.settings-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:hover {
    background: #f7fafc;
}

.settings-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.settings-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.settings-item-details h4 {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.settings-item-details p {
    font-size: 0.875rem;
    color: #718096;
}

.settings-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-small {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.btn-icon-small.btn-edit {
    background: #edf2f7;
    color: #4a5568;
}

.btn-icon-small.btn-edit:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.btn-icon-small.btn-delete {
    background: #fed7d7;
    color: #e53e3e;
}

.btn-icon-small.btn-delete:hover {
    background: #fc8181;
    color: white;
    transform: scale(1.05);
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #718096;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.empty-state p {
    font-size: 0.875rem;
}

/* Settings Modal */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.settings-modal.active {
    display: flex;
}

.settings-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.settings-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-modal-header h3 {
    font-size: 1.25rem;
    color: #2d3748;
}

.settings-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f7fafc;
    color: #718096;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.settings-modal-close:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.settings-modal-body {
    padding: 1.5rem;
}

.settings-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Responsive Settings */
@media (max-width: 768px) {
    .settings-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .settings-tab {
        white-space: nowrap;
    }
    
    .settings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .settings-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .settings-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Features Checkbox List */
.features-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.feature-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-checkbox-item:hover {
    background: #e8f4f8;
    border-color: #2196F3;
}

.feature-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2196F3;
}

.feature-checkbox-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-size: 14px;
    color: #333;
}

.feature-checkbox-item input[type="checkbox"]:checked + label {
    font-weight: 500;
    color: #2196F3;
}

/* Categories Manager */
.categories-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.category-item:hover {
    border-color: #2196F3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.category-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.category-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f4f8;
    border-radius: 8px;
    color: #2196F3;
    font-size: 18px;
}

.category-item-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 16px;
    color: #333;
}

.category-item-details p {
    margin: 0;
    font-size: 13px;
    color: #718096;
}

.category-item-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 0.5rem;
}

.category-item-actions {
    display: flex;
    gap: 0.5rem;
}
 
 
/* ===================================
   MODERATION VIOLATIONS STYLES
   =================================== */

/* Filters Card */
.filters-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: margin-bottom 0.3s ease;
}

.filters-card.filters-collapsed {
    margin-bottom: 1rem;
}

.filters-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.filters-card .card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-card .card-header .btn-link {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.filters-card .card-header .btn-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.filters-card .card-header .btn-link:active {
    transform: scale(0.95);
}

.filters-card .card-header .btn-link i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.filters-card .card-header .btn-link:hover i {
    transform: translateY(-2px);
}

.filters-card .card-body {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.filter-item .form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.filter-item .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filters-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Violations Grid */
.violations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    transition: margin-top 0.3s ease;
}

/* Espaçamento quando filtros estão ocultos */
.page-content:has(.filters-card.filters-collapsed) .violations-grid,
.page-content:has(.filters-card #filters-body[style*="display: none"]) .violations-grid {
    margin-top: 2rem;
}

/* Fallback para navegadores que não suportam :has() */
.filters-collapsed ~ * .violations-grid,
#filters-body[style*="display: none"] ~ * .violations-grid {
    margin-top: 2rem;
}

/* Violation Card */
.violation-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.violation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.violation-card.high-risk {
    border-left: 4px solid #ef4444;
}

.violation-card.medium-risk {
    border-left: 4px solid #f59e0b;
}

.violation-card.low-risk {
    border-left: 4px solid #10b981;
}

.violation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.violation-id {
    font-weight: 600;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Violation Image */
.violation-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f1f5f9;
}

.violation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
}

.violation-image.blurred {
    filter: blur(15px);
    cursor: default;
}

.violation-image:not(.blurred) {
    cursor: pointer;
}

.violation-image:not(.blurred):hover {
    transform: scale(1.05);
}

/* Blur Overlay */
.image-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s;
}

.violation-image-container:hover .image-blur-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.blur-warning {
    text-align: center;
    color: white;
    padding: 1rem;
}

.blur-warning i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.9;
}

.blur-warning p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.btn-remove-blur {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-remove-blur:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-remove-blur i {
    font-size: 1rem;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.violation-image-container:hover .image-overlay {
    opacity: 1;
}

.btn-icon-white {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.btn-icon-white:hover {
    background: white;
    transform: scale(1.1);
}

/* Violation Content */
.violation-content {
    padding: 1.25rem;
}

.violation-info-section {
    margin-bottom: 1.25rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item i {
    color: #667eea;
    font-size: 1.1rem;
    margin-top: 0.25rem;
    min-width: 20px;
}

.info-item strong {
    display: block;
    color: #1a202c;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.info-item small {
    color: #718096;
    font-size: 0.8rem;
}

/* Likelihoods Section */
.likelihoods-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.likelihoods-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.likelihood-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.likelihood-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.likelihood-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.likelihood-label span:first-child {
    color: #4a5568;
    font-weight: 500;
}

.likelihood-value {
    font-weight: 600;
    font-size: 0.85rem;
}

.likelihood-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.likelihood-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.likelihood-fill.badge-red {
    background: #ef4444;
}

.likelihood-fill.badge-yellow {
    background: #f59e0b;
}

.likelihood-fill.badge-green {
    background: #10b981;
}

.likelihood-fill.badge-gray {
    background: #9ca3af;
}

/* Rejection Reason */
.rejection-reason {
    margin-top: 1rem;
    padding: 1rem;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 6px;
}

.rejection-reason i {
    color: #ef4444;
    margin-right: 0.5rem;
}

.rejection-reason strong {
    display: block;
    color: #991b1b;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.rejection-reason p {
    color: #7f1d1d;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* Violation Actions */
.violation-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 100px;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-view {
    background: #667eea;
    color: white;
}

.btn-view:hover {
    background: #5568d3;
}

.btn-approve {
    background: #10b981;
    color: white;
}

.btn-approve:hover {
    background: #059669;
}

.btn-reject {
    background: #ef4444;
    color: white;
}

.btn-reject:hover {
    background: #dc2626;
}

.btn-revalidate {
    background: #8b5cf6;
    color: white;
}

.btn-revalidate:hover {
    background: #7c3aed;
}

/* Empty State */
#moderation-violations-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#moderation-violations-empty i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

#moderation-violations-empty h3 {
    color: #4a5568;
    margin-bottom: 0.5rem;
}

#moderation-violations-empty p {
    color: #718096;
}

/* Pagination Wrapper */
.pagination-wrapper {
    margin-top: 2rem;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pagination-info {
    color: #718096;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-info strong {
    color: #4a5568;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pagination {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pagination:hover:not(.disabled) {
    background: #f8fafc;
    border-color: #667eea;
    color: #667eea;
}

.btn-pagination.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

.btn-pagination-number {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-pagination-number:hover {
    background: #f8fafc;
    border-color: #667eea;
}

.btn-pagination-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-dots {
    padding: 0.5rem;
    color: #718096;
}

/* Modal Image Viewer */
.modal-image-viewer {
    max-width: 90vw;
    max-height: 90vh;
}

.modal-image-viewer .modal-body {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image-container {
    position: relative;
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    object-fit: contain;
    display: block;
    transition: filter 0.3s;
}

.modal-image.blurred {
    filter: blur(15px);
    cursor: default;
}

.modal-image:not(.blurred) {
    cursor: zoom-in;
}

.modal-image-container .image-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s;
}

.modal-image-container:hover .image-blur-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .violations-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-controls {
        justify-content: center;
    }
    
    .violation-actions {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
}

/* Violation Details Modal */
.violation-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.detail-section {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.detail-image-container {
    position: relative;
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.detail-image {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s;
}

.detail-image.blurred {
    filter: blur(15px);
    cursor: default;
}

.detail-image:not(.blurred) {
    cursor: pointer;
}

.detail-image-container .image-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s;
}

.detail-image-container:hover .image-blur-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: #4a5568;
    font-size: 0.875rem;
}

.detail-item span {
    color: #1a202c;
    font-size: 0.875rem;
}

.rejection-text {
    color: #991b1b !important;
    font-weight: 500;
}

.likelihoods-detailed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.likelihood-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.likelihood-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.likelihood-header span:first-child {
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.likelihood-percentage {
    font-weight: 600;
    font-size: 0.95rem;
}

.likelihood-bar-large {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

/* Dashboard Section */
.dashboard-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.dashboard-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: #4a5568;
}

.section-header .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Chart card dentro do dashboard section */
.dashboard-section .chart-card {
    margin-top: 20px;
    height: 400px;
}

/* Users Grid */
#moderation-users-container {
    width: 100%;
    min-height: 200px;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

.user-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.user-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.user-card.blocked {
    border-color: #ef4444;
    background: #fef2f2;
}

.user-card.automatic-block {
    border-color: #dc2626;
    background: #fee2e2;
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #e2e8f0;
}

.user-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.user-card.blocked .user-avatar img {
    border-color: #ef4444;
    opacity: 0.8;
}

.blocked-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.blocked-badge.automatic {
    background: #dc2626;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    border-width: 3px;
    animation: pulse-automatic 2s infinite;
}

@keyframes pulse-automatic {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.6);
    }
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-email {
    margin: 0;
    font-size: 0.875rem;
    color: #718096;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
}

.stat-item i {
    font-size: 1.25rem;
    color: #4a5568;
}

.stat-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-item strong {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
}

.stat-item span {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-red {
    color: #ef4444 !important;
}

.text-green {
    color: #10b981 !important;
}

.blocked-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fee2e2;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 3px solid #ef4444;
}

.blocked-info.automatic-warning {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
    border: 2px solid #dc2626;
}

.blocked-info i {
    color: #ef4444;
    font-size: 1rem;
}

.blocked-info div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.blocked-info strong {
    font-size: 0.75rem;
    color: #991b1b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blocked-info span {
    font-size: 0.875rem;
    color: #dc2626;
    font-weight: 500;
}

.blocked-reason {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fef2f2;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.blocked-reason i {
    color: #ef4444;
    margin-top: 0.25rem;
}

.blocked-reason p {
    margin: 0;
    font-size: 0.875rem;
    color: #991b1b;
    line-height: 1.5;
}

.blocked-reason strong {
    font-weight: 600;
}

.user-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.user-actions .btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    min-height: 60px;
}

.user-actions .btn-action i {
    font-size: 1rem;
}

.user-actions .btn-action span {
    font-size: 0.7rem;
    font-weight: 500;
}

.user-actions .btn-action.btn-primary {
    background: #3b82f6;
    color: white;
}

.user-actions .btn-action.btn-primary:hover {
    background: #2563eb;
}

.user-actions .btn-action.btn-success {
    background: #10b981;
    color: white;
}

.user-actions .btn-action.btn-success:hover {
    background: #059669;
}

.user-actions .btn-action.btn-warning {
    background: #f59e0b;
    color: white;
}

.user-actions .btn-action.btn-warning:hover {
    background: #d97706;
}

.user-actions .btn-action.btn-secondary {
    background: #6b7280;
    color: white;
}

.user-actions .btn-action.btn-secondary:hover {
    background: #4b5563;
}

/* Garantir que o container de usuários não quebre */
#moderation-users-container .users-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
}

#moderation-users-container .user-card {
    display: flex !important;
    flex-direction: column !important;
}

@media (max-width: 768px) {
    .users-grid {
        grid-template-columns: 1fr !important;
    }
    
    .user-actions {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .user-card {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .violation-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilo para destacar usuário quando redirecionado */
.user-card.user-highlighted {
    animation: highlightPulse 2s ease-in-out;
    border-color: #3b82f6 !important;
    border-width: 3px !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    transform: scale(1.02);
    z-index: 10;
    position: relative;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.3), 0 6px 16px rgba(59, 130, 246, 0.4);
    }
}
