/**
 * ==============================================================================
 * SISTEMA DE GESTIÓN Y TRAZABILIDAD DE PROYECTOS - ALCALDÍA DE GIRARDOTA (2024-2027)
 * ESTILOS GENERALES Y SISTEMA DE DISEÑO INSTITUCIONAL (FONDO BLANCO / ACENTOS VERDES)
 * ==============================================================================
 */

/* 1. RESET Y BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --girardota-50:  #f0fdf4;
    --girardota-100: #dcfce7;
    --girardota-200: #bbf7d0;
    --girardota-300: #86efac;
    --girardota-400: #4ade80;
    --girardota-500: #0b8f4e;
    --girardota-600: #0d5c4b;
    --girardota-700: #0c4a3e; /* Verde Bosque Principal de Jerarquía */
    --girardota-800: #08382f;
    --girardota-900: #031915;
    --girardota-lime: #84cc16;

    --bg-main:   #f8fafc;
    --card-bg:   #ffffff;
    --border-color: #e2e8f0;

    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-card:   0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
    --shadow-login:  0 15px 35px -5px rgba(15, 23, 42, 0.07), 0 5px 15px rgba(15, 23, 42, 0.03);
}

html, body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    background-color: var(--bg-main);
    color: var(--slate-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    border: none;
    background: transparent;
    cursor: pointer;
}

input, select, textarea {
    font: inherit;
}

/* 2. PÁGINA DE LOGIN INSTITUCIONAL (RESPONSIVE Y COMPACTO) */
.login-wrapper {
    min-height: 100vh;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.login-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-login);
    border: 1px solid rgba(226, 232, 240, 0.9);
    max-width: 410px;
    width: 100%;
    margin: auto;
    padding: 1.5rem 1.75rem 1.25rem 1.75rem;
    position: relative;
    text-align: center;
    box-sizing: border-box;
}

.login-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.65rem;
}

.login-logo-img {
    height: 64px;
    max-height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
}

.login-header {
    margin-bottom: 1rem;
}

.login-title {
    color: var(--girardota-700);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.login-subtitle {
    color: var(--slate-600);
    font-size: 0.775rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.login-subtext {
    color: var(--slate-400);
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 0.1rem;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    color: var(--slate-700);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.form-control {
    width: 100%;
    background-color: #ffffff;
    border: 1.5px solid var(--slate-200);
    border-radius: 0.625rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.8125rem;
    color: var(--slate-800);
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--girardota-700);
    box-shadow: 0 0 0 3px rgba(12, 74, 62, 0.12);
}

.login-forgot-wrap {
    text-align: right;
    margin-bottom: 0.85rem;
    margin-top: -0.15rem;
}

.login-forgot-link {
    color: var(--slate-500);
    font-size: 0.725rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.login-forgot-link:hover {
    color: var(--girardota-700);
    text-decoration: underline;
}

.btn-primary-institutional {
    width: 100%;
    background-color: var(--girardota-700);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.65rem 1rem;
    border-radius: 0.625rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(12, 74, 62, 0.18);
}

.btn-primary-institutional:hover {
    background-color: var(--girardota-800);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(12, 74, 62, 0.25);
}

.btn-primary-institutional:active {
    transform: scale(0.99);
}

/* Accesos rápidos discretos */
.demo-access-container {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--slate-100);
    text-align: left;
}

.demo-access-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 0.5rem;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.demo-chip {
    padding: 0.4rem 0.55rem;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 0.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
}

.demo-chip:hover {
    background-color: #ffffff;
    border-color: var(--girardota-500);
    box-shadow: var(--shadow-subtle);
}

.demo-chip-role {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--slate-700);
}

.demo-chip-desc {
    font-size: 0.6rem;
    color: var(--slate-400);
}

.login-footer {
    margin-top: 0.85rem;
    font-size: 0.675rem;
    color: var(--slate-400);
    font-weight: 500;
}

/* 3. CLASES DE UTILIDAD GENERAL */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Hidden siempre anula cualquier otro modo de despliegue */
.hidden, [hidden], .d-none { 
    display: none !important; 
}

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }

.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem !important; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem !important; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem !important; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem !important; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem !important; }

.space-x-1 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.25rem !important; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem !important; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem !important; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem !important; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* 4. COLORES INSTITUCIONALES (ACENTOS Y JERARQUÍA) */
.bg-girardota-50  { background-color: var(--girardota-50) !important; }
.bg-girardota-100 { background-color: var(--girardota-100) !important; }
.bg-girardota-500 { background-color: var(--girardota-500) !important; }
.bg-girardota-600 { background-color: var(--girardota-600) !important; }
.bg-girardota-700 { background-color: var(--girardota-700) !important; }
.bg-girardota-lime { background-color: var(--girardota-lime) !important; }

.text-girardota-500 { color: var(--girardota-500) !important; }
.text-girardota-600 { color: var(--girardota-600) !important; }
.text-girardota-700 { color: var(--girardota-700) !important; }
.text-girardota-800 { color: var(--girardota-800) !important; }

.border-girardota-600 { border-color: var(--girardota-600) !important; }
.border-girardota-700 { border-color: var(--girardota-700) !important; }

.bg-white { background-color: #ffffff !important; }
.bg-slate-50  { background-color: var(--slate-50) !important; }
.bg-slate-100 { background-color: var(--slate-100) !important; }
.bg-slate-200 { background-color: var(--slate-200) !important; }
.bg-slate-800 { background-color: var(--slate-800) !important; }
.bg-slate-900 { background-color: var(--slate-900) !important; }

.bg-blue-50  { background-color: #eff6ff !important; }
.bg-blue-100 { background-color: #dbeafe !important; }
.text-blue-300 { color: #93c5fd !important; }
.text-blue-600 { color: #2563eb !important; }
.text-blue-800 { color: #1e40af !important; }
.border-blue-200 { border-color: #bfdbfe !important; }

.bg-amber-50  { background-color: #fffbeb !important; }
.bg-amber-100 { background-color: #fef3c7 !important; }
.text-amber-600 { color: #d97706 !important; }
.text-amber-700 { color: #b45309 !important; }
.text-amber-800 { color: #92400e !important; }
.text-amber-900 { color: #78350f !important; }
.border-amber-200 { border-color: #fde68a !important; }
.border-amber-300 { border-color: #fcd34d !important; }

.bg-rose-50  { background-color: #fff1f2 !important; }
.bg-rose-100 { background-color: #ffe4e6 !important; }
.text-rose-600 { color: #e11d48 !important; }
.text-rose-700 { color: #be123c !important; }
.text-rose-800 { color: #9f1239 !important; }
.text-rose-900 { color: #881337 !important; }
.border-rose-200 { border-color: #fecdd3 !important; }
.border-rose-300 { border-color: #fda4af !important; }

.bg-emerald-50  { background-color: #f0fdf4 !important; }
.bg-emerald-100 { background-color: #dcfce7 !important; }
.bg-emerald-500 { background-color: #10b981 !important; color: #ffffff !important; }
.bg-emerald-600 { background-color: #059669 !important; color: #ffffff !important; }
.bg-emerald-700 { background-color: #047857 !important; color: #ffffff !important; }
.bg-emerald-800 { background-color: #065f46 !important; color: #ffffff !important; }
.hover\:bg-emerald-700:hover { background-color: #047857 !important; }
.text-emerald-600 { color: #059669 !important; }
.text-emerald-700 { color: #047857 !important; }
.text-emerald-800 { color: #065f46 !important; }
.text-emerald-900 { color: #064e3b !important; }
.border-emerald-200 { border-color: #a7f3d0 !important; }
.border-emerald-300 { border-color: #6ee7b7 !important; }
.border-emerald-600 { border-color: #059669 !important; }

.text-white { color: #ffffff !important; }
.text-slate-400 { color: var(--slate-400) !important; }
.text-slate-500 { color: var(--slate-500) !important; }
.text-slate-600 { color: var(--slate-600) !important; }
.text-slate-700 { color: var(--slate-700) !important; }
.text-slate-800 { color: var(--slate-800) !important; }
.text-slate-900 { color: var(--slate-900) !important; }

/* 5. TARJETAS Y CONTENEDORES BLANCOS */
.card-institutional {
    background-color: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 1rem;
    box-shadow: var(--shadow-subtle);
    padding: 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-institutional:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--slate-300);
}

.card-accent-top {
    border-top: 4px solid var(--girardota-700) !important;
}

/* 6. TABLAS LIMPIAS */
.table-institutional {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8125rem;
}

.table-institutional th {
    background-color: var(--slate-50);
    color: var(--slate-700);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.6875rem;
    padding: 0.875rem 1rem;
    border-bottom: 1.5px solid var(--slate-200);
    text-align: left;
}

.table-institutional td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-700);
}

.table-institutional tbody tr:hover {
    background-color: var(--slate-50);
}

/* 7. SEMÁFOROS Y BADGES */
.badge-semaforo-verde {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.badge-semaforo-amarillo {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.badge-semaforo-rojo {
    background-color: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

/* 8. POSICIONAMIENTO Y MEDIDAS */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-y-0 { top: 0 !important; bottom: 0 !important; }
.top-0 { top: 0 !important; }
.right-0 { right: 0 !important; }
.left-0 { left: 0 !important; }
.bottom-0 { bottom: 0 !important; }

/* Transformaciones y Animaciones de Drawer / Off-canvas */
.-translate-x-full { 
    transform: translateX(-100%) !important; 
}
.translate-x-0 { 
    transform: translateX(0) !important; 
}
.transition-transform { 
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important; 
}

.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-30 { z-index: 30 !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }

.w-full { width: 100% !important; }
.w-64 { width: 16rem !important; }
.w-80 { width: 20rem !important; }
.w-96 { width: 24rem !important; }
.max-w-md { max-width: 28rem !important; }
.max-w-lg { max-width: 32rem !important; }
.max-w-xl { max-width: 36rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-3xl { max-width: 48rem !important; }
.max-w-7xl { max-width: 80rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mx-8 { margin-left: 2rem !important; margin-right: 2rem !important; }

.h-full { height: 100% !important; }
.h-16 { height: 4rem !important; }
.min-h-screen { min-height: 100vh !important; }

.backdrop-blur-sm { backdrop-filter: blur(4px) !important; }
.bg-slate-900\/40 { background-color: rgba(15, 23, 42, 0.4) !important; }
.bg-slate-900\/60 { background-color: rgba(15, 23, 42, 0.6) !important; }

/* 9. PADDINGS Y MARGINS */
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }

.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }

.pl-10 { padding-left: 2.5rem !important; }
.pr-4 { padding-right: 1rem !important; }

.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }

.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-3xl { border-radius: 1.5rem !important; }
.rounded-full { border-radius: 9999px !important; }

.border { border: 1px solid var(--slate-200) !important; }
.border-b { border-bottom: 1px solid var(--slate-200) !important; }
.border-t { border-top: 1px solid var(--slate-200) !important; }
.border-r { border-right: 1px solid var(--slate-200) !important; }

.shadow-sm { box-shadow: var(--shadow-subtle) !important; }
.shadow-md { box-shadow: var(--shadow-card) !important; }
.shadow-xl { box-shadow: var(--shadow-login) !important; }

/* 10. TIPOGRAFÍAS */
.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }

.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-extrabold { font-weight: 800 !important; }
.font-black { font-weight: 900 !important; }

.uppercase { text-transform: uppercase !important; }
.tracking-wider { letter-spacing: 0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }

.cursor-pointer { cursor: pointer !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.modal-backdrop { background-color: rgba(15, 23, 42, 0.55) !important; backdrop-filter: blur(4px) !important; }

/* 11. RESPONSIVO Y VISIBILIDAD */
@media (min-width: 640px) {
    .sm\:block { display: block !important; }
    .sm\:hidden { display: none !important; }
    .sm\:flex { display: flex !important; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .sm\:p-6 { padding: 1.5rem !important; }
    .sm\:text-3xl { font-size: 1.875rem !important; }
    .sm\:text-sm { font-size: 0.875rem !important; }
}

@media (min-width: 768px) {
    .md\:block { display: block !important; }
    .md\:hidden { display: none !important; }
    .md\:flex { display: flex !important; }
    .md\:flex-row { flex-direction: row !important; }
    .md\:items-center { align-items: center !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block !important; }
    .lg\:hidden { display: none !important; }
    .lg\:flex { display: flex !important; }
    .lg\:static { position: static !important; }
    .lg\:inset-auto { top: auto; right: auto; bottom: auto; left: auto; }
    .lg\:translate-x-0 { transform: none !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .lg\:p-8 { padding: 2rem !important; }
    .lg\:px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
}

/* 12. MATERIAL DESIGN 3 EXPRESSIVE TOKENS */
.m3-surface {
    background-color: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.m3-surface:hover {
    box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

.m3-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #334155;
    transition: all 0.2s ease;
    user-select: none;
}

.m3-chip:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.m3-chip.active {
    background-color: #0c4a3e !important;
    color: #ffffff !important;
    border-color: #0c4a3e !important;
    box-shadow: 0 2px 8px rgba(12, 74, 62, 0.25);
}

.m3-search-bar {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.m3-search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    border-radius: 9999px;
    border: 1.5px solid #cbd5e1;
    background-color: #f8fafc;
    font-size: 0.775rem;
    font-weight: 500;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
}

.m3-search-input:focus {
    background-color: #ffffff;
    border-color: #0c4a3e;
    box-shadow: 0 0 0 3px rgba(12, 74, 62, 0.12);
}

.m3-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.75rem;
    pointer-events: none;
}

/* ==============================================================================
 * 10. SKELETON SCREENS (LOADERS / SHIMMER EFFECTS)
 * ============================================================================== */
@keyframes shimmerAnim {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmerAnim 1.6s infinite ease-in-out;
    border-radius: 0.5rem;
    display: inline-block;
}

.skeleton-text {
    height: 12px;
    width: 100%;
    border-radius: 4px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    border-radius: 6px;
}

.skeleton-circle {
    border-radius: 9999px;
    display: inline-block;
}

.skeleton-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-row td {
    pointer-events: none;
    user-select: none;
}

/* ==============================================================================
 * 11. ESTADOS VACÍOS (EMPTY STATES)
 * ============================================================================== */
.empty-state {
    padding: 3.5rem 1.5rem;
    text-align: center;
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1.5px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 1.25rem;
    background: #f0fdf4;
    color: #0b8f4e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(11, 143, 78, 0.12);
}

.empty-state-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.empty-state-desc {
    font-size: 0.8rem;
    color: #64748b;
    max-width: 380px;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* ==============================================================================
 * 12. TOASTS / SNACKBARS (NOTIFICACIONES EFÍMERAS)
 * ============================================================================== */
#toastContainer {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 360px;
    width: calc(100% - 3rem);
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    background: #ffffff;
    border-radius: 1rem;
    padding: 0.85rem 1.15rem;
    box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.15), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.toast-item.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-item.hide {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-success {
    border-left: 4px solid #0b8f4e;
}
.toast-success .toast-icon {
    color: #0b8f4e;
}

.toast-error {
    border-left: 4px solid #ef4444;
}
.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}
.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-left: 4px solid #0284c7;
}
.toast-info .toast-icon {
    color: #0284c7;
}

.toast-close {
    margin-left: auto;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px;
}
.toast-close:hover {
    color: #475569;
}

/* ==============================================================================
 * 13. MANEJO OFFLINE Y DEGRADACIÓN ELEGANTE
 * ============================================================================== */
#offlineBanner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100000;
    padding: 0.5rem 1rem;
    font-size: 0.775rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#offlineBanner.offline-active {
    display: flex;
    background-color: #ef4444;
    color: #ffffff;
}

#offlineBanner.online-restored {
    display: flex;
    background-color: #0b8f4e;
    color: #ffffff;
}

/* ==============================================================================
 * 14. MICROINTERACCIONES Y EFECTOS
 * ============================================================================== */
.micro-hover {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.micro-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(12, 74, 62, 0.1);
}

.micro-hover:active {
    transform: translateY(0) scale(0.98);
}

.btn-press {
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-press:active {
    transform: scale(0.96);
    filter: brightness(0.95);
}

/* Dropzone de screenshot en soporte */
.screenshot-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.screenshot-dropzone:hover, .screenshot-dropzone.dragover {
    border-color: #0b8f4e;
    background: #f0fdf4;
}


