@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');


/* ============================================================
   1. VARIABLES & RESET
   ============================================================ */
:root {
    /* Paleta Principal */
    --bg-app:       #f2f5f9;
    --sidebar-bg:   #1a1a1a;
    --card-bg:      #ffffff;

    /* Textos */
    --text-main:    #111827;
    --text-muted:   #6b7280;
    --text-on-dark: #f9fafb;

    /* Botones / Primario */
    --primary:       #111827;
    --primary-hover: #374151;

    /* Estados */
    --accent-blue:         #e0f2fe;
    --accent-blue-text:    #0284c7;
    --accent-green:        #dcfce7;
    --accent-green-text:   #16a34a;
    --accent-purple:       #f3e8ff;
    --accent-purple-text:  #9333ea;
    --accent-red:          #fee2e2;
    --accent-red-text:     #dc2626;

    /* Estructura */
    --radius-xl:    24px;
    --radius-md:    16px;
    --radius-sm:    8px;
    --shadow-soft:  0 10px 40px -10px rgba(0,0,0,0.05);
    --shadow-card:  0 4px 6px -1px rgba(0,0,0,0.02),
                    0 2px 4px -1px rgba(0,0,0,0.02);
}

*  { box-sizing: border-box; }
*,
*::before,
*::after { margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    height: 100vh;
    /* FIX: overflow-x:hidden en lugar de overflow:hidden
       para no bloquear scroll en iOS Safari */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    color: var(--text-muted);
}


/* ============================================================
   2. LOGIN
   ============================================================ */
.login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top right, #e0f2fe, transparent 40%),
        radial-gradient(circle at bottom left, #f3e8ff, transparent 40%),
        #f8fafc;
}

.login-container {
    background: var(--card-bg);
    width: 100%;
    max-width: 420px;
    padding: 3.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.login-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-subtext {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}


/* ============================================================
   3. DASHBOARD LAYOUT
   ============================================================ */
.dashboard {
    display: flex;
    height: 100vh;
    width: 100%;
    padding: 15px;
    gap: 15px;
    /* FIX: overflow oculto en el dashboard para que
       el scroll quede solo en .content */
    overflow: hidden;
}

/* Sidebar Flotante */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    color: var(--text-on-dark);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* FIX: era h2 en CSS pero h3 en el template -> ahora ambos usan h2 */
.sidebar-header h2 {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
}

.logo {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #9ca3af;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.menu-item {
    padding: 13px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: #9ca3af;
    transition: background 0.2s, color 0.2s;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
    /* FIX: white-space nowrap para que no rompa el texto en sidebar estrecho */
    white-space: nowrap;
}

.menu-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.07);
}

.menu-item.active {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.menu-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Area de contenido principal */
/* FIX: La clase .content ahora coincide con id="mainContent"
   porque en app.js el div tiene ambos: class="main-content content" */
.content {
    flex: 1;
    background: var(--bg-app);
    border-radius: var(--radius-xl);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 25px 30px;
    position: relative;
    /* Scroll suave en iOS */
    -webkit-overflow-scrolling: touch;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-main);
}


/* ============================================================
   4. INPUTS, LABELS Y BOTONES
   ============================================================ */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 1.2rem;
    border: 2px solid transparent;
    background: #fff;
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-main);
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    /* FIX: evitar que inputs rompan el layout en móvil */
    max-width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover  { opacity: 0.88; transform: translateY(-1px); }
button:active { transform: translateY(1px); }

/* FIX: UX - feedback táctil en ticket-card */
.ticket-card:active { transform: scale(0.985); }

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #fff;
    color: #000;
    box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
    background: #f3f4f6;
    opacity: 1;
}


/* ============================================================
   5. TARJETAS (TICKETS)
   ============================================================ */
.ticket-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 1.6rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.ticket-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.07);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ticket-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
}

.ticket-id {
    font-weight: 700;
    color: #9ca3af;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Prioridad - borde lateral de color */
.ticket-card[data-prio="Alta"]    { border-left: 4px solid #f59e0b; }
.ticket-card[data-prio="Crítica"] { border-left: 4px solid var(--accent-red-text); }
.ticket-card[data-prio="Media"]   { border-left: 4px solid var(--accent-blue-text); }
.ticket-card[data-prio="Baja"]    { border-left: 4px solid #a3e635; }

/* Badges (Estados) */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.badge.Abierto           { background: var(--accent-blue);   color: var(--accent-blue-text); }
.badge.Cerrado           { background: var(--accent-green);  color: var(--accent-green-text); }
.badge.admin             { background: var(--accent-purple); color: var(--accent-purple-text); }
/* FIX: selector más robusto para "En Proceso" */
.badge[class*="Proceso"] { background: var(--accent-purple); color: var(--accent-purple-text); }


/* ============================================================
   6. CHAT
   ============================================================ */
.chat-container {
    background: #fff;
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-xl);
    padding: 25px;
    margin-bottom: 20px;
    max-height: 480px;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* FIX: flex column para que los bubbles se alineen correctamente */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    padding: 14px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    margin: 0;
    max-width: 80%;
    position: relative;
    word-wrap: break-word;
    word-break: break-word;
}

.chat-bubble.cliente {
    background: #f3f4f6;
    color: #1f2937;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-bubble.soporte {
    background: #111;
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-meta {
    font-size: 0.68rem;
    margin-top: 8px;
    opacity: 0.55;
    font-weight: 600;
    text-align: right;
    display: block;
}

.attachment-preview {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    background: rgba(0,0,0,0.04);
    margin-top: 8px;
    transition: opacity 0.2s;
}

.attachment-preview:hover { opacity: 0.75; }

/* Reply box */
.reply-box {
    background: #fff;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 20px;
}

.reply-box textarea {
    background: #f9fafb;
    border-radius: var(--radius-md);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    margin-bottom: 0;
}


/* ============================================================
   7. KANBAN
   ============================================================ */
.kanban-board {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
}

.kanban-column {
    background: rgba(255,255,255,0.65);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0,0,0,0.04);
    min-width: 300px;
    flex: 1;
    display: flex;
    flex-direction: column;
    /* FIX: max-height para que columnas largas no rompan el layout */
    max-height: calc(100vh - 200px);
}

.kanban-header {
    font-size: 1rem;
    padding: 18px 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    flex-shrink: 0;
}

.kanban-count {
    background: rgba(0,0,0,0.06);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #555;
}

.kanban-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
}

.kanban-body .ticket-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0;
}


/* ============================================================
   8. FAQs GRID
   ============================================================ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.faq-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 28px 20px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 160px;
    justify-content: center;
    gap: 12px;
}

.faq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -5px rgba(0,0,0,0.09);
    border-color: rgba(0,0,0,0.06);
}

/* FIX: UX - feedback táctil en faq-card */
.faq-card:active { transform: scale(0.97); }

.faq-icon {
    font-size: 1.6rem;
    background: var(--bg-app);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-card h3 {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}


/* ============================================================
   9. MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 580px;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative;
    animation: slideUp 0.3s ease-out;
    /* FIX: scroll interno si el contenido es largo */
    max-height: 85vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    box-shadow: none;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #000;
    transform: none;
    opacity: 1;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #111;
    padding-right: 40px;
    line-height: 1.3;
}

.modal-body {
    font-size: 1rem;
    line-height: 1.75;
    color: #4b5563;
    white-space: pre-wrap;
}


/* ============================================================
   10. DROPZONE Y FILE UPLOAD
   ============================================================ */
.dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 35px 20px;
    text-align: center;
    transition: border-color 0.25s, background 0.25s, transform 0.2s;
    background: #f8fafc;
    cursor: pointer;
}

.dropzone:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.dropzone.dragover {
    border-color: var(--accent-blue-text);
    background: var(--accent-blue);
    transform: scale(1.01);
}

.dropzone-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.file-upload { width: 100%; }

.file-btn {
    background: #fff;
    border: 2px dashed #d1d5db;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    color: #6b7280;
    transition: border-color 0.2s, color 0.2s;
    justify-content: center;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

.file-btn:hover {
    border-color: #000;
    color: #000;
    background: #fafafa;
    opacity: 1;
    transform: none;
    box-shadow: none;
}

.file-btn input { display: none; }


/* ============================================================
   11. FORMULARIOS
   ============================================================ */
.ticket-form { max-width: 680px; }

.form-group { margin-bottom: 20px; }

.faq-suggestions {
    margin-top: -10px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background 0.15s;
}

.faq-suggestion:hover  { background: #f3f4f6; }
.faq-suggestion:last-child { border-bottom: none; }


/* ============================================================
   12. TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* FIX: max-width para no desbordar en móvil */
    max-width: calc(100vw - 40px);
}

.toast {
    background: #fff;
    padding: 16px 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    /* FIX: min-width reducido y max-width relativo para móvil */
    min-width: 260px;
    max-width: 380px;
    border-left: 5px solid #333;
    opacity: 0;
    transform: translateX(110%);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* FIX: .show controla la animación en lugar de @keyframes directo
   (evita que el toast aparezca y desaparezca de golpe) */
.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success { border-left-color: var(--accent-green-text); }
.toast.error   { border-left-color: var(--accent-red-text); }
.toast.info    { border-left-color: var(--accent-blue-text); }


/* ============================================================
   13. EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 18px;
    opacity: 0.45;
    filter: grayscale(1);
    display: block;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.95rem;
}


/* ============================================================
   14. SKELETON LOADER
   ============================================================ */
.skeleton-container { padding: 10px 0; }

.skeleton {
    background: #e2e8f0;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.55),
        transparent
    );
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

/* FIX: clases corregidas de sk-* (antes eran skeleton-card y skeleton-title
   que no existían en el CSS) */
.sk-card  { height: 110px; border-radius: var(--radius-xl); margin-bottom: 14px; }
.sk-text  { height: 13px;  margin-bottom: 8px; width: 55%; }
.sk-title { height: 28px;  margin-bottom: 20px; width: 38%; }
.sk-circle{ width: 48px;   height: 48px; border-radius: 50%; }


/* ============================================================
   15. LOADER SPINNER
   ============================================================ */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}


/* ============================================================
   16. SWEETALERT2 OVERRIDES
   ============================================================ */
div:where(.swal2-container) div:where(.swal2-popup) {
    border-radius: var(--radius-xl) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    padding: 2rem !important;
    box-shadow: var(--shadow-soft) !important;
}

div:where(.swal2-icon) { border-color: transparent !important; }

div:where(.swal2-container) div:where(.swal2-confirm),
div:where(.swal2-container) div:where(.swal2-cancel) {
    border-radius: 50px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
}


/* ============================================================
   17. VISTA ASISTENTE IA
   ============================================================ */
.ai-widget-container {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    min-height: 500px;
    border: 1px solid rgba(0,0,0,0.04);
}


/* ============================================================
   18. ANIMACIONES
   ============================================================ */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes shimmer {
    100% { transform: translateX(100%); }
}


/* ============================================================
   19. RESPONSIVE (MÓVIL)
   ============================================================ */
@media (max-width: 768px) {

    .dashboard {
        flex-direction: column;
        padding: 0;
        gap: 0;
        height: 100dvh; /* FIX: dvh para móvil (evita el salto de la barra del navegador) */
    }

    /* Sidebar horizontal en móvil */
    .sidebar {
        width: 100%;
        border-radius: 0;
        height: auto;
        padding: 12px 16px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        overflow-x: auto;
        overflow-y: visible;
        gap: 8px;
        /* FIX: No se corta el texto al hacer scroll horizontal */
        flex-wrap: nowrap;
    }

    .sidebar-header {
        margin: 0;
        padding: 0;
        border: none;
        flex-shrink: 0;
    }

    .logo { font-size: 1.4rem; }

    /* FIX: user-info oculto en móvil para no ocupar espacio */
    .user-info  { display: none; }
    .menu-footer{ display: none; }

    .menu {
        flex-direction: row;
        gap: 4px;
        overflow-x: auto;
        flex: 1;
    }

    .menu-item {
        padding: 8px 12px;
        white-space: nowrap;
        font-size: 0.8rem;
        flex-shrink: 0;
        /* FIX: Ocultar texto en móvil, solo ícono */
        gap: 0;
    }

    /* FIX: Ocultar texto del menú en móvil, dejar solo emoji */
    .menu-item > span + * { display: none; }

    .content {
        border-radius: 0;
        padding: 16px;
        /* FIX: altura restante tras la barra de navegación */
        height: calc(100dvh - 60px);
    }

    /* Toast más compacto en móvil */
    #toast-container {
        top: auto;
        bottom: 16px;
        right: 12px;
        left: 12px;
    }

    .toast {
        min-width: unset;
        max-width: 100%;
    }

    .faq-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .kanban-board {
        flex-direction: column;
        overflow-x: hidden;
    }

    .kanban-column {
        min-width: unset;
        max-height: none;
    }

    .chat-bubble { max-width: 92%; }

    .section-title { font-size: 1.4rem; }

    .modal-content { padding: 28px 22px; }

    .ticket-card { padding: 1.2rem; }
}

@media (max-width: 400px) {
    .login-container { padding: 2.5rem 1.8rem; }
    .section-title   { font-size: 1.2rem; }
}
