
:root {
    --color-principal: #8BC34A;
    --color-secundario: #0485b1;
    --color-light-blue: #05AAE3;
    --color-texto: #333333;
    --color-fondo: #f4f6f9;
    --color-verde-fondo-tenue: rgba(139, 195, 74, 0.08);

    --gradient-primary: linear-gradient(135deg, var(--color-principal) 0%, var(--color-principal) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-secundario) 0%, #008ff5 100%);
    --gradient-background: linear-gradient(135deg, #f4f6f9 0%, #e8ecf0 100%);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --border-radius-small: 12px;
    --border-radius-large: 20px;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--color-fondo);
}


.login-bg,
.register-bg,
.forgot-password-bg {
    background: url(/assets/img/cjb-img.webp) center/cover no-repeat;
    min-height: 100vh;
}

.form-container-transparent,
.register-form-container-transparent {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.register-form-container-transparent {
    padding: 20px;
}

@media (max-width: 991.98px) {
    .auth-left {
        display: none;
    }
}

.register-bg .auth-right {
    overflow-y: auto;
    justify-content: flex-start !important;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.register-bg .auth-right::-webkit-scrollbar {
    width: 6px;
}

.register-bg .auth-right::-webkit-scrollbar-track {
    background: transparent;
}

.register-bg .auth-right::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.filter-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    padding: 1.5rem;
}

details[open] > summary.pilar-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

details[open] > summary.pilar-header::after {
    transform: translateY(-50%) rotate(90deg);
    color: var(--color-secundario);
}

details[open] > .details-content {
    background-color: var(--color-verde-fondo-tenue);
    border-color: #d8e6c9;
}

summary.pilar-header {
    display: block;
    background-color: #ffffff;
    color: var(--color-texto);
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 12px;
    border-left: 6px solid var(--color-principal);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: all 0.2s ease-in-out;
}

summary.pilar-header::-webkit-details-marker {
    display: none;
}

summary.pilar-header:hover {
    border-left-color: var(--color-secundario);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

summary.pilar-header::after {
    content: '›';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 2.5rem;
    font-weight: lighter;
    color: var(--color-principal);
    transition: transform 0.3s ease, color 0.3s ease;
}

.details-content {
    border: 1px solid #e0e0e0;
    border-top: none;
    padding: 1.5rem;
    margin-top: -1rem;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.report-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.report-card h6 {
    font-weight: bold;
    color: #333;
}

.report-card p {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}


.asignar-incidente,
.resolver-incidente,
.iniciar-incidente,
.detail-reporte-ciudadano {
    transition: all 0.25s ease-in-out;
    color: #FFFFFF !important;
}

.asignar-incidente:hover,
.resolver-incidente:hover,
.iniciar-incidente:hover,
.detail-reporte-ciudadano:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #FFFFFF !important;
}

.asignar-incidente,
.resolver-incidente {
    background-color: var(--color-secundario) !important;
    border-color: var(--color-secundario) !important;
}

.iniciar-incidente {
    background-color: var(--color-light-blue) !important;
    border-color: var(--color-light-blue) !important;
}

.publicar-incidente {
    background-color: #62e9ff !important;
    border-color: #62e9ff !important;
}



.detail-reporte-ciudadano {
    background-color: var(--color-principal) !important;
    border-color: var(--color-principal) !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--color-principal);
    border-color: var(--color-principal);
}

.pagination .page-link {
    color: var(--color-principal);
}

.modal-covered {
    filter: blur(1px);
    transition: all 0.2s ease-in-out;
}

.ff-validation-alert {
    color: red;
}

.reset {
    all: revert;
}

.badge.bg-info,
.badge.bg-warning {
    color: #000 !important;
}

.badge-nuevo{
    background-color: #12cc41;
}

.badge-asignado{
    background-color: #0Ab5f5;
}

.badge-proceso{
    background-color: #FCCC1A;
}

.badge-resuelto{
    background-color: #E31212;
}

.badge-cerrado{
    background-color: rgba(161, 161, 161, 0.82);
}

.lc-btn-48, .lc-btn-32, .lc-btn-24, .lc-btn-sm, .lc-btn-xs {
    cursor: pointer;
}

.page-header {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.page-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: float 6s ease-in-out infinite;
}

.page-header h1, .page-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 2.2rem;
    position: relative;
    z-index: 1;
}

.page-header .subtitle {
    opacity: 0.9;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}
.lc-btn-48 { width: 48px; height: 48px; margin: 5px; }
.lc-btn-32 { width: 32px; height: 32px; margin: 3px; }
.lc-btn-24 { width: 24px; height: 24px; margin: 2px; }
.lc-btn-sm { width: 32px; height: 32px; padding: 2px; border-radius: 5px; }
.lc-btn-xs { width: 24px; height: 24px; padding: 1px; border-radius: 3px; }

.pagination .page-item.active .page-link{
    color: #FFFFFF;
}

.multimedia-checkbox-label {
    display: inline-block !important;
    position: relative !important;
    padding-left: 35px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    user-select: none !important;
}

.multimedia-checkbox-label input {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
    height: 0 !important;
    width: 0 !important;
}

.multimedia-checkmark {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 20px !important;
    width: 20px !important;
    background-color: #eee !important;
    border: 2px solid #ccc !important;
    border-radius: 3px !important;
}

.multimedia-checkbox-label:hover input ~ .multimedia-checkmark {
    background-color: #ccc !important;
}

.multimedia-checkbox-label input:checked ~ .multimedia-checkmark {
    background-color: #2196F3 !important;
    border-color: #2196F3 !important;
}

.multimedia-checkmark:after {
    content: "" !important;
    position: absolute !important;
    display: none !important;
}

.multimedia-checkbox-label input:checked ~ .multimedia-checkmark:after {
    display: block !important;
}

.multimedia-checkbox-label .multimedia-checkmark:after {
    left: 6px !important;
    top: 2px !important;
    width: 5px !important;
    height: 10px !important;
    border: solid white !important;
    border-width: 0 3px 3px 0 !important;
    transform: rotate(45deg) !important;
}


/*  Overides del texto para el modo oscuro para mejor lectura */
html[data-theme=dark] {
    --color-fondo: #0f172a;
    --color-texto: #e5e7eb;
    --color-verde-fondo-tenue: rgba(139, 195, 74, 0.12);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.6);
    --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.6);
}

html[data-theme=dark] body {
    background-color: var(--color-fondo) !important;
    color: var(--color-texto);
}

html[data-theme=dark] .text-muted {
    color: #94a3b8 !important;
}

html[data-theme=dark] .filter-card,
html[data-theme=dark] .report-card,
html[data-theme=dark] summary.pilar-header,
html[data-theme=dark] .details-content {
    background-color: #1f2937;
    color: var(--color-texto);
    border-color: #374151;
    box-shadow: var(--shadow-light);
}

html[data-theme=dark] .report-card h6 {
    color: #e5e7eb;
}
html[data-theme=dark] .report-card p {
    color: #cbd5e1;
}

html[data-theme=dark] summary.pilar-header::after {
    color: var(--color-principal);
}
html[data-theme=dark] details[open] > .details-content {
    background-color: #111827;
    border-color: #374151;
}

html[data-theme=dark] .form-container {
    background-color: #1f2937 !important; 
    color: var(--color-texto);
    border-color: #374151;
    box-shadow: var(--shadow-light);
}
html[data-theme=dark] .form-container .form-label,
html[data-theme=dark] .form-container h4,
html[data-theme=dark] .form-container p,
html[data-theme=dark] .form-container span {
    color: var(--color-texto);
}
html[data-theme=dark] .form-container .form-control,
html[data-theme=dark] .form-container .form-select,
html[data-theme=dark] .form-container textarea,
html[data-theme=dark] .form-container input[type="text"],
html[data-theme=dark] .form-container input[type="number"],
html[data-theme=dark] .form-container input[type="email"],
html[data-theme=dark] .form-container input[type="password"],
html[data-theme=dark] .form-container input[type="file"] {
    background-color: #111827 !important; 
    color: #e5e7eb !important;
    border-color: #374151 !important;
}
html[data-theme=dark] .form-container .form-control::placeholder {
    color: #94a3b8; 
}

html[data-theme=dark] .fixed-submit-container {
    background-color: #0b1220 !important; 
    border-top-color: #1f2937 !important;
}
html[data-theme=dark] .fixed-submit-container .btn {
    background-color: var(--color-principal) !important;
    border-color: var(--color-principal) !important;
    color: #ffffff !important;
}

html[data-theme=dark] .btn-primary {
    background-color: var(--color-principal) !important;
    border-color: var(--color-principal) !important;
    color: #ffffff !important;
}
html[data-theme=dark] .btn-primary:hover,
html[data-theme=dark] .btn-primary:focus {
    filter: brightness(1.08);
}
html[data-theme=dark] .btn-outline-primary {
    color: var(--color-principal) !important;
    border-color: var(--color-principal) !important;
}
html[data-theme=dark] .btn-outline-primary:hover,
html[data-theme=dark] .btn-outline-primary:focus {
    background-color: var(--color-principal) !important;
    color: #ffffff !important;
}

html[data-theme=dark] .sidebar .sidebar-menu > li > a,
html[data-theme=dark] .sidebar .sidebar-submenu li > a {
    color: #cbd5e1 !important; 
}
html[data-theme=dark] .sidebar .sidebar-menu > li > a:hover,
html[data-theme=dark] .sidebar .sidebar-submenu li > a:hover {
    color: #e5e7eb !important;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

html[data-theme=dark] .sidebar .sidebar-menu > li > a span,
html[data-theme=dark] .sidebar .sidebar-submenu li > a span {
    color: var(--color-texto) !important;
}
html[data-theme=dark] .sidebar .sidebar-menu > li > a:hover span,
html[data-theme=dark] .sidebar .sidebar-submenu li > a:hover span {
    color: #e5e7eb !important;
}
html[data-theme=dark] .sidebar .sidebar-menu a.active-page span,
html[data-theme=dark] .sidebar .sidebar-menu li.active-page > a span {
    color: #ffffff !important;
}
html[data-theme=dark] .sidebar .sidebar-menu a.active-page,
html[data-theme=dark] .sidebar .sidebar-submenu a.active-page,
html[data-theme=dark] .sidebar .sidebar-menu li.active-page > a {
    color: #ffffff !important;
    background-color: #0b1220; 
    border-radius: 8px;
}

html[data-theme=dark] .sidebar .sidebar-submenu li > a.active-page,
html[data-theme=dark] .sidebar .sidebar-submenu li.active-page > a {
    color: #ffffff !important;
    background-color: #0b1220 !important;
    border-radius: 8px;
}
html[data-theme=dark] .sidebar .sidebar-submenu li > a.active-page span {
    color: #ffffff !important;
}
html[data-theme=dark] .sidebar .sidebar-submenu li > a .circle-icon {
    color: #9ca3af !important; 
}
html[data-theme=dark] .sidebar .sidebar-submenu li > a:hover .circle-icon {
    color: #e5e7eb !important;
}
html[data-theme=dark] .sidebar .sidebar-submenu li > a:hover span {
    color: #e5e7eb; 
}
html[data-theme=dark] .sidebar .sidebar-menu a.active-page span,
html[data-theme=dark] .sidebar .sidebar-menu li.active-page > a span {
    color: #ffffff;
}

html[data-theme=dark] .form-container-transparent,
html[data-theme=dark] .register-form-container-transparent {
    background-color: rgba(17, 24, 39, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme=dark] .register-bg .auth-right::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.25);
}

html[data-theme=dark] .bg-light {
    background-color: #1f2937 !important;
    color: var(--color-texto) !important;
}
html[data-theme=dark] .bg-white {
    background-color: #111827 !important;
    color: var(--color-texto) !important;
}
html[data-theme=dark] .border,
html[data-theme=dark] .border-top,
html[data-theme=dark] .border-bottom,
html[data-theme=dark] .border-start,
html[data-theme=dark] .border-end,
html[data-theme=dark] fieldset,
html[data-theme=dark] hr {
    border-color: #374151 !important;
}

html[data-theme=dark] .text-black,
html[data-theme=dark] .text-dark,
html[data-theme=dark] .pilar-header,
html[data-theme=dark] .details-content {
    color: var(--color-texto) !important;
}

html[data-theme=dark] .pagination .page-link {
    color: var(--color-principal);
    background-color: transparent;
    border-color: #374151;
}
html[data-theme=dark] .pagination .page-item.active .page-link {
    color: #FFFFFF;
}

.form-container {
    border: 1px solid #e5e7eb;
    padding: 20px 0 12px 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.form-container h4 {
    font-weight: 700;
    letter-spacing: 0.2px;
    margin: 8px 16px 12px 16px;
    padding: 4px 2px 10px 2px;
    border-radius: 10px;
    color: var(--color-principal);
    border-bottom: 1px solid rgba(139, 195, 74, 0.35);
}
.form-container hr {
    margin: 8px 16px 20px 16px;
    opacity: .25;
}
.form-container .form-group {
    margin-bottom: 18px !important;
}
.form-container .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-container .form-control,
.form-container .form-select,
.form-container textarea {
    border-radius: 10px;
    border-width: 1px;
    transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
    min-height: 46px;
}
.form-container .form-control:focus,
.form-container .form-select:focus,
.form-container textarea:focus {
    border-color: var(--color-principal) !important;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.25);
}

/* Validation states */
.is-valid,
.form-container .form-control.is-valid,
.form-container .form-select.is-valid,
.form-container textarea.is-valid {
    border-color: #22c55e !important;
}
.is-invalid,
.form-container .form-control.is-invalid,
.form-container .form-select.is-invalid,
.form-container textarea.is-invalid {
    border-color: #ef4444 !important;
}
.form-container .invalid-feedback,
.form-container .valid-feedback,
.form-container .form-text {
    margin-top: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Dark complements for validation/help text */
html[data-theme=dark] .form-container .invalid-feedback { color: #fca5a5 !important; }
html[data-theme=dark] .form-container .valid-feedback { color: #86efac !important; }
html[data-theme=dark] .form-container .form-text { color: #94a3b8 !important; }

/* Light complements for help text */
html[data-theme=light] .form-container .form-text,
html[data-theme=light] .form-container .invalid-feedback,
html[data-theme=light] .form-container .valid-feedback {
    color: #6b7280; /* slate-500 */
}

.fixed-submit-container {
    padding: 12px 16px;
    box-shadow: 0 -8px 24px rgba(0,0,0,.08);
    backdrop-filter: saturate(120%) blur(4px);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.fixed-submit-container .btn {
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    transition: transform .06s ease, box-shadow .2s ease, filter .15s ease;
}
.fixed-submit-container .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.fixed-submit-container .btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

html[data-theme="light"] .form-container {
    background-color: #ffffff;
}
html[data-theme="light"] .form-container hr {
    border-color: #e5e7eb;
}

.multimedia-checkmark:after {
    display: block !important;
}

.multimedia-checkbox-label .multimedia-checkmark:after {
    left: 6px !important;
    top: 2px !important;
    width: 5px !important;
    height: 10px !important;
    border: solid white !important;
    border-width: 0 3px 3px 0 !important;
    transform: rotate(45deg) !important;
}
