/* CSS Padrão para todas as páginas Condominium */
/* Base e Layout */
.condominium-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Padrão */
.condominium-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.condominium-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.condominium-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.condominium-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Formulários Padrão */
.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    font-weight: 700;
    color: #212529;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    text-align: center;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #128C7E;
    box-shadow: 0 0 0 0.2rem rgba(18, 140, 126, 0.25);
}

/* Botões Padrão */
.btn-primary {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(7, 94, 84, 0.3);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #128C7E;
    color: #128C7E;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(18, 140, 126, 0.3);
}

.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

/* Alertas */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

/* Links de Navegação */
.back-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #128C7E;
}

/* Icones com Texto */
.icon-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.icon-text i {
    color: #128C7E;
    font-size: 1.2rem;
}

/* Cards Estatísticos */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-icon.blue { background: rgba(13, 202, 240, 0.1); color: #0dcaf0; }
.stat-icon.green { background: rgba(25, 135, 84, 0.1); color: #198754; }
.stat-icon.orange { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.stat-icon.purple { background: rgba(111, 66, 193, 0.1); color: #6f42c1; }
.stat-icon.primary { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.stat-icon.success { background: rgba(25, 135, 84, 0.1); color: #198754; }
.stat-icon.warning { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.stat-icon.info { background: rgba(13, 202, 240, 0.1); color: #0dcaf0; }
.stat-icon.danger { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.stat-icon.secondary { background: rgba(108, 117, 125, 0.1); color: #6c757d; }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #6c757d;
    font-weight: 500;
}

/* Títulos de Seção */
.section-title {
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    border-radius: 2px;
}

/* Action Cards */
.action-card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    padding: 1.5rem;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.action-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.action-icon.bg-primary { background: linear-gradient(135deg, #075E54 0%, #128C7E 100%); }
.action-icon.bg-success { background: linear-gradient(135deg, #198754 0%, #20c997 100%); }
.action-icon.bg-warning { background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%); }
.action-icon.bg-info { background: linear-gradient(135deg, #0dcaf0 0%, #3dd5f3 100%); }
.action-icon.bg-secondary { background: linear-gradient(135deg, #6c757d 0%, #495057 100%); }

/* Table Styles */
.table-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.table-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.table-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Badges */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.badge-info {
    background: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.badge-primary {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.badge-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    background: #f8f9fa;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Apartment Cards */
.apartment-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 1rem;
}

.apartment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.apartment-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px 15px 0 0;
    padding: 1rem;
    border-bottom: 3px solid #128C7E;
}

.apartment-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #075E54;
    margin-bottom: 0.25rem;
}

.apartment-tower {
    color: #6c757d;
    font-size: 0.9rem;
}

.apartment-details {
    padding: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f3f4;
}

.detail-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #495057;
}

.detail-value {
    color: #6c757d;
}

/* Tower Cards */
.tower-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tower-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.tower-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
}

.tower-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.animate-counter {
    font-weight: 700;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .condominium-title {
        font-size: 2rem;
    }
    
    .condominium-container {
        padding: 0 15px;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-card {
        margin-bottom: 1rem;
    }
}

/* Dashboard Container para páginas de lista */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dashboard Header para páginas de lista */
.dashboard-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Action Buttons para páginas de lista */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Page Header para páginas de lista */
.page-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    color: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Back Button para páginas de lista */
.back-button {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #128C7E;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

/* Section Title com breadcrumb */
.section-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title-container .section-title {
    margin-bottom: 0;
}

.section-title-container .breadcrumb {
    margin-bottom: 0;
}

/* Navigation and Actions Row */
.nav-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.nav-actions-row .section-title {
    margin-bottom: 0;
}

.nav-actions-row .nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Resident Avatar */
.resident-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.resident-info h6 {
    margin: 0;
    color: #212529;
    font-weight: 600;
}

.resident-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Phone Link */
.phone-link {
    color: #128C7E;
    text-decoration: none;
    font-weight: 500;
}

.phone-link:hover {
    color: #075E54;
    text-decoration: underline;
}

/* Vehicle Info */
.vehicle-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.vehicle-info i {
    color: #495057;
}

/* Emergency Contact */
.emergency-contact {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Tower Stats Grid */
.tower-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tower-stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.tower-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.tower-stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Filter Section para apartamentos */
.filter-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Button Actions */
.btn-action {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2rem;
    }
    
    .nav-actions-row {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}