/**
 * ========================================
 * ESTILOS DE ADMINISTRADOR
 * public/css/admin.css
 * ========================================
 */

:root {
    /* Paleta de colores profesional elegante */
    --primary-color: #0a2e2e;
    --secondary-color: #1a5f5f;
    --accent-color: #2d8f8f;
    --gold-accent: #d4af37;
    --light-gold: #f4e7a1;
    --primary-green: #0a2e2e;
    --primary-green-light: #1a5f5f;
    --primary-green-dark: #062020;
    --secondary-green: #2d8f8f;
    --accent-green: #45a3a3;
    --light-green: #5fb5b5;
    --success-green: #27ae60;
    --warning-orange: #f39c12;
    --danger-red: #e74c3c;
    --info-blue: #3498db;
    
    /* Grises y neutros */
    --white: #ffffff;
    --light-gray: #f8fafb;
    --medium-gray: #e1e8ed;
    --dark-gray: #718096;
    --text-dark: #2c3e50;
    --text-muted: #718096;
    --bg-light: #f8fafb;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0a2e2e 0%, #1a5f5f 50%, #2d8f8f 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4e7a1 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    --gradient-light: linear-gradient(135deg, var(--bg-light) 0%, var(--medium-gray) 100%);
    --shadow-elegant: 0 20px 40px rgba(10, 46, 46, 0.1);
    
    /* Sombras */
    --shadow-sm: 0 0.125rem 0.25rem rgba(10, 46, 46, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(10, 46, 46, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(10, 46, 46, 0.175);
    --shadow-xl: 0 1.5rem 4rem rgba(10, 46, 46, 0.2);
    
    /* Transiciones */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* ========================================
   ESTILOS DE REPORTES
   ======================================== */

/* Tarjetas de estadísticas */
.stat-card {
    padding: 1.5rem;
    border-radius: 12px;
    border: none;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 80px;
}

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

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.8;
    min-width: 50px;
    text-align: center;
}

.stat-card .stat-content {
    flex: 1;
}

.stat-card .stat-content h5 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-content small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Vista previa de reportes */
.report-preview {
    padding: 1.5rem;
}

.report-preview .report-header {
    text-align: center;
    border-bottom: 2px solid var(--medium-gray);
    padding-bottom: 1rem;
}

.report-preview .report-header h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.report-preview .report-header p {
    margin: 0;
    color: var(--text-muted);
}

/* Tablas en reportes */
.report-preview .table {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.report-preview .table th {
    background-color: var(--primary-green);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
}

.report-preview .table td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--medium-gray);
}

.report-preview .table tbody tr:hover {
    background-color: var(--light-gray);
    transition: var(--transition-fast);
}

/* Badges personalizados en reportes */
.report-preview .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.report-preview .badge.bg-outline-primary {
    background-color: transparent !important;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
}

/* Modal de vista previa */
.modal-xl .modal-dialog {
    max-width: 95vw;
}

#reportPreviewModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-xl);
}

#reportPreviewModal .modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

#reportPreviewModal .modal-body {
    padding: 0;
    max-height: 80vh;
    overflow-y: auto;
}

/* Botones de descarga */
.download-options .btn {
    min-height: 60px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.download-options .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.download-options .btn i {
    font-size: 1.2rem;
}

/* Responsive para tarjetas de estadísticas */
@media (max-width: 768px) {
    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        min-height: auto;
    }
    
    .stat-card .stat-icon {
        font-size: 1.5rem;
        min-width: auto;
    }
    
    .stat-card .stat-content h5 {
        font-size: 1.25rem;
    }
}

/* Animaciones para carga de reportes */
@keyframes reportLoad {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.report-preview {
    animation: reportLoad 0.5s ease-out;
}

/* Progress bar personalizado */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: var(--medium-gray);
}

.progress-bar {
    border-radius: 10px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

/* ========================================
   LAYOUT GENERAL
   ======================================== */

body.admin-layout {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   DASHBOARD ADMINISTRADOR
   ======================================== */
.admin-dashboard {
    padding: 2rem 0;
}

/* Override para ocultar elementos antiguos */
.admin-sidebar {
    display: none !important;
}

.admin-quick-actions {
    display: none !important;
}

/* Reset layout principal */
.admin-container {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.admin-content {
    width: 100%;
    margin: 0;
    padding: 1rem;
}

.admin-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.admin-header h1 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-header .lead {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ===== TARJETAS DE ESTADÍSTICAS ADMIN ===== */
.admin-stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 5px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.admin-skeleton {
    background: linear-gradient(90deg, var(--medium-gray) 25%, var(--light-gray) 50%, var(--medium-gray) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== TOOLTIPS ADMIN ===== */
.admin-tooltip {
    position: relative;
    cursor: help;
}

.admin-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1000;
}

.admin-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* ===== BADGES ADMIN ===== */
.admin-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-badge.primary {
    background: rgba(45, 90, 61, 0.1);
    color: var(--primary-green);
    border: 1px solid rgba(45, 90, 61, 0.2);
}

.admin-badge.success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.admin-badge.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.admin-badge.danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-red);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.admin-badge.info {
    background: rgba(13, 202, 240, 0.1);
    color: var(--info-blue);
    border: 1px solid rgba(13, 202, 240, 0.2);
}

/* ===== PROGRESS BARS ADMIN ===== */
.admin-progress {
    height: 10px;
    background: var(--medium-gray);
    border-radius: 50px;
    overflow: hidden;
    margin: 1rem 0;
}

.admin-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50px;
    transition: width 0.6s ease;
    position: relative;
}

.admin-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(45deg, transparent 35%, rgba(255,255,255,0.2) 35%, rgba(255,255,255,0.2) 65%, transparent 65%);
    background-size: 30px 30px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% { background-position: 0 0; }
    100% { background-position: 30px 0; }
}

/* ===== TIMELINE ADMIN ===== */
.admin-timeline {
    position: relative;
    padding-left: 2rem;
}

.admin-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--medium-gray);
}

.admin-timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-left: 1rem;
}

.admin-timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-green);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-green);
}

.admin-timeline-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.admin-timeline-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.admin-timeline-content {
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== SIDEBAR ADMIN ===== */
.admin-sidebar {
    position: fixed;
    top: 76px;
    left: 0;
    width: 280px;
    height: calc(100vh - 76px);
    background: var(--white);
    border-right: 1px solid var(--medium-gray);
    padding: 2rem 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

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

.admin-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar-item {
    margin-bottom: 0.5rem;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
    background: var(--light-gray);
    color: var(--primary-green);
    border-right-color: var(--primary-green);
    text-decoration: none;
}

.admin-sidebar-link i {
    width: 20px;
    margin-right: 1rem;
    font-size: 1.125rem;
}

.admin-sidebar-toggle {
    display: none;
    position: fixed;
    top: 85px;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

/* ===== CARDS DE ACCIÓN RÁPIDA ADMIN ===== */
.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-quick-action {
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.admin-quick-action:hover {
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--primary-green);
}

.admin-quick-action-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.admin-quick-action:hover .admin-quick-action-icon {
    transform: scale(1.1);
}

.admin-quick-action-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.admin-quick-action-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ===== RESPONSIVE ESPECÍFICO MOBILE ===== */
@media (max-width: 768px) {
    .admin-sidebar-toggle {
        display: block;
    }

    .admin-sidebar {
        width: 100%;
        top: 70px;
        height: calc(100vh - 70px);
    }

    .admin-content {
        margin-left: 0;
    }

    .admin-quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .admin-quick-action {
        padding: 1rem;
    }

    .admin-quick-action-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .admin-quick-actions {
        grid-template-columns: 1fr;
    }

    .admin-timeline {
        padding-left: 1rem;
    }

    .admin-timeline-item {
        margin-left: 0.5rem;
        padding: 1rem;
    }

    .admin-timeline-item::before {
        left: -1rem;
        top: 1rem;
    }
}

/* ===== PRINT STYLES ADMIN ===== */
@media print {
    .admin-sidebar,
    .admin-sidebar-toggle,
    .admin-quick-actions,
    .btn,
    .admin-btn {
        display: none !important;
    }

    .admin-content {
        margin-left: 0;
    }

    .admin-stat-card,
    .admin-table-container,
    .admin-form-container {
        box-shadow: none;
        border: 1px solid var(--medium-gray);
        break-inside: avoid;
    }

    .admin-header {
        background: none;
        color: var(--text-dark);
        border-bottom: 2px solid var(--medium-gray);
    }
}


.admin-stat-card:hover::before {
    right: -20px;
}

.admin-stat-card.owners-card {
    border-left-color: #007bff;
}

.admin-stat-card.payments-card {
    border-left-color: #28a745;
}

.admin-stat-card.suggestions-card {
    border-left-color: #ffc107;
}

.admin-stat-card.incidents-card {
    border-left-color: #dc3545;
}

.admin-stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.owners-card .admin-stat-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.payments-card .admin-stat-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.suggestions-card .admin-stat-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.incidents-card .admin-stat-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.admin-stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.admin-stat-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.admin-stat-trend {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.trend-down {
    color: var(--danger-red);
}

.trend-neutral {
    color: var(--text-muted);
}

/* ===== NAVEGACIÓN ADMIN ===== */
.admin-nav-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.admin-nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

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

.admin-nav-item {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.admin-nav-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
    color: var(--primary-green);
    text-decoration: none;
}

.admin-nav-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.admin-nav-item h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.admin-nav-item p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== TABLAS ADMIN ===== */
.admin-table-container {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.admin-table-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 16px 16px 0 0;
}

.admin-table-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.admin-table {
    margin: 0;
}

.admin-table thead th {
    background: var(--light-gray);
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    border: none;
}

.admin-table tbody td {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--medium-gray);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: var(--light-gray);
}

/* ===== FORMULARIOS ADMIN ===== */
.admin-form-container {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.admin-form-header {
    border-bottom: 2px solid var(--medium-gray);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.admin-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
}

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

.admin-form-label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-form-control {
    border-radius: 12px;
    border: 2px solid var(--medium-gray);
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.admin-form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 61, 0.15);
}

/* ===== FILTROS Y BÚSQUEDA ADMIN ===== */
.admin-filters {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.admin-search-box {
    position: relative;
}

.admin-search-box input {
    padding-left: 3rem;
    border-radius: 12px;
    border: 2px solid var(--medium-gray);
}

.admin-search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 10;
}

.admin-filter-group {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.admin-filter-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== CARDS DE INFORMACIÓN ADMIN ===== */
.admin-info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--info-blue);
    margin-bottom: 1.5rem;
}

.admin-info-card.warning {
    border-left-color: var(--warning-orange);
}

.admin-info-card.success {
    border-left-color: var(--success-green);
}

.admin-info-card.danger {
    border-left-color: var(--danger-red);
}

.admin-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--white);
}

.admin-info-card .admin-info-icon {
    background: var(--info-blue);
}

.admin-info-card.warning .admin-info-icon {
    background: var(--warning-orange);
    color: var(--text-dark);
}

.admin-info-card.success .admin-info-icon {
    background: var(--success-green);
}

.admin-info-card.danger .admin-info-icon {
    background: var(--danger-red);
}

.admin-info-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.admin-info-content {
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== REPORTES ADMIN ===== */
.admin-report-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.admin-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--medium-gray);
}

.admin-report-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
}

.admin-report-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-chart-container {
    position: relative;
    height: 400px;
    margin: 1rem 0;
}

.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.admin-metric-item {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 12px;
}

.admin-metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.admin-metric-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== GESTIÓN DE PROPIETARIOS ===== */
.owner-profile-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: var(--transition);
}

.owner-profile-card:hover {
    border-color: var(--primary-green-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.owner-profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.owner-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.owner-info h5 {
    margin-bottom: 0.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.owner-location {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.owner-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.owner-stat {
    text-align: center;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.owner-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.owner-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.owner-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ===== GESTIÓN DE PAGOS ADMIN ===== */
.payment-config-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--success-green);
}

.payment-history-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.payment-status {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.payment-status.paid {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.payment-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.payment-status.overdue {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-red);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.payment-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-green);
}

/* ===== GESTIÓN DE INCIDENTES ===== */
.incident-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
    border-left: 5px solid transparent;
}

.incident-card.high-priority {
    border-left-color: var(--danger-red);
}

.incident-card.medium-priority {
    border-left-color: var(--warning-orange);
}

.incident-card.low-priority {
    border-left-color: var(--info-blue);
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.incident-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.incident-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.incident-priority {
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.incident-priority.high {
    background: var(--danger-red);
    color: var(--white);
}

.incident-priority.medium {
    background: var(--warning-orange);
    color: var(--text-dark);
}

.incident-priority.low {
    background: var(--info-blue);
    color: var(--white);
}

.incident-description {
    margin: 1rem 0;
    line-height: 1.6;
    color: var(--text-dark);
}

.incident-photo {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem 0;
    cursor: pointer;
    transition: var(--transition);
}

.incident-photo:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.incident-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--medium-gray);
}

.incident-status-select {
    min-width: 150px;
    border-radius: 8px;
    border: 1px solid var(--medium-gray);
    padding: 0.5rem;
}

/* ===== MODALES ADMIN ===== */
.admin-modal .modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: var(--shadow-xl);
}

.admin-modal .modal-header {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    padding: 2rem;
}

.admin-modal .modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.admin-modal .modal-body {
    padding: 2rem;
}

.admin-modal .modal-footer {
    border-top: 1px solid var(--medium-gray);
    padding: 1.5rem 2rem;
    background: var(--light-gray);
    border-radius: 0 0 24px 24px;
}

/* ===== ALERTAS ADMIN ===== */
.admin-alert {
    border-radius: 12px;
    border: none;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
}

.admin-alert.success {
    background: rgba(25, 135, 84, 0.1);
    color: #0a3622;
    border-left-color: var(--success-green);
}

.admin-alert.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left-color: var(--warning-orange);
}

.admin-alert.danger {
    background: rgba(220, 53, 69, 0.1);
    color: #58151c;
    border-left-color: var(--danger-red);
}

.admin-alert.info {
    background: rgba(13, 202, 240, 0.1);
    color: #055160;
    border-left-color: var(--info-blue);
}

/* ===== BOTONES ADMIN ===== */
.admin-btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

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

.admin-btn.success {
    background: linear-gradient(135deg, var(--success-green) 0%, #388e3c 100%);
    color: var(--white);
}

.admin-btn.warning {
    background: linear-gradient(135deg, var(--warning-orange) 0%, #f57c00 100%);
    color: var(--text-dark);
}

.admin-btn.danger {
    background: linear-gradient(135deg, var(--danger-red) 0%, #d32f2f 100%);
    color: var(--white);
}

.admin-btn.outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.admin-btn.outline:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* ===== RESPONSIVE ADMIN ===== */
@media (max-width: 1200px) {
    .admin-nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .admin-stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .admin-dashboard {
        padding: 1rem 0;
    }

    .admin-header {
        padding: 1.5rem;
        text-align: center;
    }

    .admin-stat-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }

    .admin-stat-number {
        font-size: 2rem;
    }

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

    .admin-nav-item {
        padding: 1rem;
    }

    .admin-nav-item i {
        font-size: 2rem;
    }

    .admin-filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .admin-filter-actions {
        flex-direction: column;
        width: 100%;
    }

    .admin-table-container {
        margin: 0 -1rem;
        border-radius: 0;
    }

    .admin-form-container {
        padding: 1.5rem;
    }

    .owner-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .owner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .incident-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .admin-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .admin-header h1 {
        font-size: 1.75rem;
    }

    .admin-stat-card {
        padding: 1rem;
    }

    .admin-stat-number {
        font-size: 1.75rem;
    }

    .admin-stat-label {
        font-size: 1rem;
    }

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

    .admin-nav-item i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody td {
        display: block;
        border: none;
        border-bottom: 1px solid var(--gray-200);
        padding: 0.5rem 1rem;
    }

    .admin-table tbody td:before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: var(--primary-green);
    }

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

    .admin-metrics-grid {
        grid-template-columns: 1fr;
    }

    .admin-modal .modal-header,
    .admin-modal .modal-body,
    .admin-modal .modal-footer {
        padding: 1rem;
    }

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

/* ===== ANIMACIONES ADMIN ===== */
@keyframes adminSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.admin-slide-in {
    animation: adminSlideIn 0.6s ease-out;
}

.admin-fade-in {
    animation: adminFadeIn 0.5s ease-out;
}

/* ===== UTILIDADES ADMIN ===== */
.admin-text-primary {
    color: var(--primary-color) !important;
}

.admin-bg-primary {
    background: var(--gradient-primary) !important;
}

.admin-shadow {
    box-shadow: var(--shadow) !important;
}

.admin-shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.admin-rounded {
    border-radius: var(--border-radius-lg) !important;
}

.admin-rounded-xl {
    border-radius: var(--border-radius-xl) !important;
}

/* ===== ESTADOS DE CARGA ADMIN ===== */
.admin-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    flex-direction: column;
    gap: 1rem;
}

.admin-loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--medium-gray);
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
   STATS CARDS
   ======================================== */

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

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-icon.owners { background: var(--gradient-primary); }
.stat-icon.payments { background: var(--gradient-secondary); }
.stat-icon.suggestions { background: linear-gradient(135deg, var(--info-blue) 0%, #1976d2 100%); }
.stat-icon.incidents { background: linear-gradient(135deg, var(--warning-orange) 0%, #f57c00 100%); }

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   TABLES
   ======================================== */

.data-table-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.table-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.table-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--light-gray);
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--medium-gray);
}

.data-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
    color: var(--text-dark);
}

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

.data-table tbody tr:hover {
    background: rgba(45, 80, 22, 0.02);
}

/* ========================================
   BOTONES
   ======================================== */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.btn-success {
    background: linear-gradient(135deg, var(--success-green) 0%, #388e3c 100%);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-orange) 0%, #f57c00 100%);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-red) 0%, #d32f2f 100%);
    color: var(--white);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-blue) 0%, #1976d2 100%);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(135deg, var(--success-green) 0%, #388e3c 100%);
    color: var(--white);
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning-orange) 0%, #f57c00 100%);
    color: var(--white);
}

.badge-danger {
    background: linear-gradient(135deg, var(--danger-red) 0%, #d32f2f 100%);
    color: var(--white);
}

.badge-info {
    background: linear-gradient(135deg, var(--info-blue) 0%, #1976d2 100%);
    color: var(--white);
}

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

.badge-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-actions {
        justify-content: stretch;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .stat-card,
    .data-table-container {
        padding: 1.5rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 1rem;
    }
}

/* ========================================
   DASHBOARD SPECIFIC LAYOUT FIXES
   ======================================== */


/* ===== HEADER ADMIN ===== */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.header-content .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem;
}

.header-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-weight: 500;
}

.header-actions .btn:hover {
    background: var(--white);
    color: var(--primary-green);
}

/* OCULTAR NAVEGACIÓN REDUNDANTE */
.admin-nav {
    display: none;
}


/* ===== ESTADISTICAS HORIZONTALES ARRIBA ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 4px solid;
}

.stat-card:nth-child(1) {
    border-top-color: var(--primary-green);
}

.stat-card:nth-child(2) {
    border-top-color: var(--info-blue);
}

.stat-card:nth-child(3) {
    border-top-color: var(--success-green);
}

.stat-card:nth-child(4) {
    border-top-color: var(--warning-orange);
}

.stat-card:nth-child(5) {
    border-top-color: var(--info-blue);
}

.stat-card:nth-child(6) {
    border-top-color: var(--text-muted);
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin: 0 auto 1rem;
}

.stat-icon.bg-primary {
    background: var(--gradient-primary);
}

.stat-icon.bg-success {
    background: linear-gradient(135deg, var(--success-green) 0%, #388e3c 100%);
}

.stat-icon.bg-warning {
    background: linear-gradient(135deg, var(--warning-orange) 0%, #f57c00 100%);
}

.stat-icon.bg-info {
    background: linear-gradient(135deg, var(--info-blue) 0%, #1976d2 100%);
}

.stat-icon.bg-secondary {
    background: var(--gradient-secondary);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    line-height: 1;
}

.stat-content p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
}

.stat-content small {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* ===== DASHBOARD GRID REORGANIZADO ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Panel lateral izquierdo más pequeño */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Contenido principal más ancho */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

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

.dashboard-card .card-header {
    background: var(--light-gray);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--medium-gray);
}

.dashboard-card .card-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.dashboard-card .card-body {
    padding: 2rem;
}

/* ===== QUICK ACTIONS VERTICALES ===== */
.quick-actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action-btn-vertical {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--light-gray);
    border: 2px solid var(--medium-gray);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    gap: 0.75rem;
}

.quick-action-btn-vertical:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateX(3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.quick-action-btn-vertical i {
    font-size: 1.25rem;
    width: 20px;
    text-align: center;
}

.quick-action-btn-vertical span {
    font-weight: 600;
    font-size: 0.875rem;
}

/* ===== ACTIVITY LIST ===== */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0;
    font-weight: 500;
    color: var(--text-dark);
}

/* ===== MONTHLY SUMMARY HORIZONTAL ===== */
.monthly-summary-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item-horizontal {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
    gap: 1rem;
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.summary-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

/* ===== SYSTEM STATUS ===== */
.system-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-item span {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
}

.status-item small {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========================================
   GESTIÓN DE MASCOTAS
   ======================================== */

/* ===== ESTADÍSTICAS DE MASCOTAS ===== */
.pets-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* ===== FILTROS DE MASCOTAS ===== */
.pets-filters-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.pets-filters-card .card-header {
    background: var(--light-gray);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--medium-gray);
}

.pets-filters-card .card-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.pets-filters-card .card-body {
    padding: 2rem;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 10;
}

.search-box input {
    padding-left: 3rem;
    border-radius: 10px;
    border: 2px solid var(--medium-gray);
}

.search-box input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 61, 0.15);
}

/* ===== GALERÍA DE MASCOTAS ===== */
.pets-gallery {
    margin-top: 2rem;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.pet-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
}

.pet-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green-light);
}

/* ===== IMAGEN DE MASCOTA ===== */
.pet-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--light-gray);
}

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

.pet-card:hover .pet-image {
    transform: scale(1.05);
}

.pet-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
}

.pet-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.pet-placeholder span {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
}

.pet-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    backdrop-filter: blur(10px);
}

.badge-dog {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.badge-cat {
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.badge-other {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* ===== INFORMACIÓN DE MASCOTA ===== */
.pet-info {
    padding: 2rem;
}

.pet-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.pet-details {
    margin-bottom: 2rem;
}

.pet-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.detail-value {
    font-weight: 600;
    color: var(--text-dark);
}

.color-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 15px;
    color: var(--white);
    font-size: 0.75rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.3);
    min-width: 80px;
    text-align: center;
}

/* Fix para color badges claros */
.color-badge[style*="#ffffff"], 
.color-badge[style*="white"],
.color-badge[style*="#ffff00"],
.color-badge[style*="#f5f5dc"] {
    color: var(--text-dark) !important;
    text-shadow: none !important;
    border: 2px solid var(--medium-gray) !important;
}

/* ===== INFORMACIÓN DEL PROPIETARIO ===== */
.pet-owner {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.owner-header {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.owner-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.owner-contact {
    margin-bottom: 0.5rem;
}

.contact-item {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    width: 16px;
    text-align: center;
}

.owner-address {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

/* ===== ACCIONES DE MASCOTA ===== */
.pet-actions {
    padding: 0 2rem 2rem;
    display: flex;
    gap: 0.75rem;
    justify-content: stretch;
}

.pet-actions .btn {
    flex: 1;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.pet-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== ESTADO VACÍO ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.empty-state h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== RESPONSIVE MASCOTAS ===== */
@media (max-width: 768px) {
    .pets-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pets-grid {
        grid-template-columns: 1fr;
    }
    
    .pet-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .filters-form .row {
        --bs-gutter-x: 0.75rem;
    }
    
    .filters-form .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .pet-actions {
        flex-direction: column;
    }
    
    .pet-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .pets-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pet-image-container {
        height: 200px;
    }
    
    .pet-info {
        padding: 1.5rem;
    }
    
    .pet-actions {
        padding: 0 1.5rem 1.5rem;
    }
    
    .pets-filters-card .card-body {
        padding: 1.5rem;
    }
}

/* ===== RESPONSIVE DASHBOARD ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .stat-content p {
        font-size: 0.8rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .monthly-summary-horizontal {
        grid-template-columns: 1fr;
    }
    
    .summary-item-horizontal {
        padding: 1rem;
    }
    
    .dashboard-card .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .stat-content h3 {
        font-size: 1.25rem;
    }
    
    .quick-action-btn-vertical {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .summary-value {
        font-size: 1.5rem;
    }
}