/* ==========================================================================
   UNIDOGS MALOS ADOPTANTES - PUBLIC MODULE STYLES (ENHANCED DESIGN)
   ========================================================================== */

.unidogs-bad-adopters-wrapper {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    box-sizing: border-box;
}

/* ==========================================
   HERO INSTITUCIONAL Y MARCO LEGAL
   ========================================== */
.bad-adopters-hero {
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 60%, #1e293b 100%);
    border-radius: 24px;
    padding: 44px 38px;
    color: #ffffff;
    box-shadow: 0 20px 45px rgba(11, 19, 43, 0.3);
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bad-adopters-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 92, 0, 0.15);
    border: 1px solid rgba(230, 92, 0, 0.5);
    color: #ff9d42;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.bad-adopters-hero .hero-title {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 auto 14px auto !important;
    line-height: 1.25 !important;
    text-align: center !important;
    max-width: 900px;
}

.bad-adopters-hero .hero-subtitle {
    font-size: 1rem !important;
    color: #94a3b8 !important;
    max-width: 860px;
    line-height: 1.65 !important;
    margin: 0 auto 28px auto !important;
    text-align: center !important;
}

.legal-disclaimer-box {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(230, 92, 0, 0.35);
    border-left: 5px solid #e65c00;
    border-radius: 14px;
    padding: 22px 28px;
    margin: 0 auto 28px auto;
    max-width: 940px;
    text-align: justify;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.disclaimer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.disclaimer-header i {
    color: #e65c00;
    font-size: 1.2rem;
}

.legal-disclaimer-box p {
    font-size: 0.9rem !important;
    color: #cbd5e1 !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    text-align: justify !important;
}

.hero-actions-bar {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-report-adopter-cta {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    border: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-report-adopter-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.55);
}

/* ==========================================
   CARD DE BÚSQUEDA Y FILTROS POR UBICACIÓN
   ========================================== */
.bad-adopters-filter-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 32px 36px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 36px;
}

.filter-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.filter-header h3 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
}

.filter-header p {
    font-size: 0.9rem !important;
    color: #64748b !important;
    margin: 0 !important;
}

.filter-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.filter-row-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.filter-row-locations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.filter-row-actions {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px dashed #e2e8f0;
    padding-top: 20px;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: #e65c00;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(230, 92, 0, 0.1);
    outline: none;
}

.btn-filter-submit {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
    padding: 0 28px;
    height: 46px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: all 0.2s ease;
}

.btn-filter-submit:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

.btn-filter-reset {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 0 22px;
    height: 46px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-filter-reset:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ==========================================
   GRILLA DE RESULTADOS Y TARJETAS
   ========================================== */
.bad-adopters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.adopter-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.adopter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.09);
}

.card-header-badge {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
}

.badge-red { background: #fee2e2; color: #dc2626; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-yellow { background: #fef3c7; color: #b45309; }

.report-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.card-body-content {
    padding: 22px 20px;
}

.adopter-name {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
}

.adopter-dni-tag {
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 6px;
}

.adopter-location {
    font-size: 0.84rem;
    color: #64748b;
    margin-bottom: 16px;
}

.adopter-description-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.55;
    font-style: italic;
}

.card-footer-actions {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

.btn-view-evidences {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0284c7;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-evidences:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* ==========================================
   BOTÓN DE OJO EN TABLAS (DETALLE DE EVIDENCIAS)
   ========================================== */
.btn-table-eye {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border: 1px solid #7dd3fc !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 5px rgba(2, 132, 199, 0.12) !important;
}

.btn-table-eye:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
    transform: translateY(-2px) scale(1.05) !important;
}

/* ==========================================
   ESTADO VACÍO (EMPTY STATE CARD)
   ========================================== */
.empty-results-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 54px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
}

.empty-results-card .empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(230, 92, 0, 0.1);
    color: #e65c00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin-bottom: 20px;
}

.empty-results-card h3 {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 10px 0 !important;
    text-align: center !important;
}

.empty-results-card p {
    font-size: 0.94rem !important;
    color: #64748b !important;
    max-width: 520px;
    margin: 0 auto !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

/* ==========================================
   ESTILOS DE MODALES DE REGISTRO Y EVIDENCIA
   ========================================== */
.unidogs-modal-box,
.evidence-modal-box,
.report-form-modal-box {
    max-width: 680px;
    width: 90%;
    background: #ffffff;
    border-radius: 12px !important;
    padding: 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.modal-header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.modal-header-title h3 {
    margin: 0 !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.btn-close-modal-x {
    background: none;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-modal-x:hover {
    color: #dc2626;
}

.modal-body-scrollable {
    max-height: 75vh;
    overflow-y: auto;
    padding-right: 8px;
}

.file-upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 26px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-dropzone:hover {
    border-color: #0284c7;
    background: #f0f9ff;
}

.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.file-preview-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    position: relative;
}

/* ==========================================
   FORMULARIOS E INSUMOS DEL MÓDULO (FULL WIDTH TEXTAREA & INPUTS)
   ========================================== */
.unidogs-form .form-group {
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

.unidogs-form .form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.unidogs-form input[type="text"],
.unidogs-form input[type="password"],
.unidogs-form input[type="email"],
.unidogs-form select,
.unidogs-form textarea,
#rep-description,
#rep-address {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 16px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    color: #0f172a !important;
    background: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    display: block !important;
}

.unidogs-form textarea,
#rep-description {
    min-height: 120px !important;
    resize: vertical !important;
}

.unidogs-form input:focus,
.unidogs-form select:focus,
.unidogs-form textarea:focus,
#rep-description:focus {
    border-color: #e65c00 !important;
    box-shadow: 0 0 0 4px rgba(230, 92, 0, 0.15) !important;
    outline: none !important;
}

/* MODAL CLOSE BUTTON STYLING */
.btn-close-modal-x {
    background: transparent !important;
    border: none !important;
    font-size: 1.35rem !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

.btn-close-modal-x:hover {
    color: #ef4444 !important;
    background: #fee2e2 !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .filter-row-top {
        grid-template-columns: 1fr;
    }
    .filter-row-locations {
        grid-template-columns: 1fr;
    }
    .bad-adopters-hero {
        padding: 30px 20px;
    }
    .bad-adopters-hero .hero-title {
        font-size: 1.7rem !important;
    }
    .bad-adopters-filter-card {
        padding: 24px 20px;
    }
}

