/* ============================================
   LEARNING TRACKER - Stylesheet
   Design System: iamjosemoreta.com
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.07);
    --border-subtle: rgba(255,255,255,0.06);
    --border-medium: rgba(255,255,255,0.10);
    --border-hover: rgba(255,255,255,0.18);
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.6);
    --text-muted: rgba(255,255,255,0.35);
    --accent: #818cf8;
    --accent-dim: rgba(129,140,248,0.15);
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 28px;
    --shadow-card: 0 8px 40px rgba(0,0,0,0.2);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ---- BACKGROUND EFFECTS ---- */
.bg-spheres {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}
.sphere-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle at 30% 30%, rgba(99,102,241,0.12), rgba(79,70,229,0.04));
    top: -200px; left: -150px;
    animation: sphereFloat1 18s ease-in-out infinite alternate;
}
.sphere-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle at 70% 30%, rgba(139,92,246,0.10), rgba(124,58,237,0.02));
    bottom: -150px; right: -100px;
    animation: sphereFloat2 22s ease-in-out infinite alternate;
}
.sphere-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.06), transparent);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: sphereFloat3 15s ease-in-out infinite alternate;
}
@keyframes sphereFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 100px) scale(1.1); }
}
@keyframes sphereFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, -80px) scale(1.15); }
}
@keyframes sphereFloat3 {
    0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    100% { transform: translate(-50%, -50%) scale(1.2) rotate(15deg); }
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 60px 60px;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.3;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ---- PARTICLES ---- */
#particlesCanvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ---- GLASS CARD ---- */
.glass-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
}
.glass-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-2xl) + 1px);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 40%, transparent 60%, rgba(255,255,255,0.04));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card-sm {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
    text-decoration: none;
}
.btn-primary {
    background: #fff;
    color: #111;
    box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}
.btn-primary:hover {
    background: #f0f0f0;
    box-shadow: 0 6px 24px rgba(255,255,255,0.15);
    transform: translateY(-1px);
}
.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.btn-danger {
    background: rgba(248,113,113,0.12);
    color: var(--danger);
    border: 1px solid rgba(248,113,113,0.2);
}
.btn-danger:hover {
    background: rgba(248,113,113,0.2);
}
.btn-success {
    background: rgba(52,211,153,0.12);
    color: var(--success);
    border: 1px solid rgba(52,211,153,0.2);
}
.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
}
.btn-xs {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* ---- FORM ELEMENTS ---- */
.form-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.form-input:focus {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
}
.form-input::placeholder {
    color: rgba(255,255,255,0.3);
}
.form-input.error {
    border-color: rgba(248,113,113,0.5);
}
.form-select {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='rgba(255,255,255,0.4)'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: border-color 0.2s;
}
.form-select:focus {
    border-color: rgba(255,255,255,0.25);
}
.form-select option {
    background: #1a1a2e;
    color: #fff;
}
.form-textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s, background 0.2s;
}
.form-textarea:focus {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
}
.form-textarea::placeholder {
    color: rgba(255,255,255,0.3);
}
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.375rem;
    letter-spacing: 0.01em;
}

/* ---- STATUS BADGES ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}
.badge-pending {
    background: rgba(251,191,36,0.12);
    color: var(--warning);
    border: 1px solid rgba(251,191,36,0.2);
}
.badge-cursando {
    background: rgba(96,165,250,0.12);
    color: var(--info);
    border: 1px solid rgba(96,165,250,0.2);
}
.badge-approved {
    background: rgba(52,211,153,0.12);
    color: var(--success);
    border: 1px solid rgba(52,211,153,0.2);
}
.badge-failed {
    background: rgba(248,113,113,0.12);
    color: var(--danger);
    border: 1px solid rgba(248,113,113,0.2);
}
.badge-retirada {
    background: rgba(251,146,60,0.12);
    color: #fb923c;
    border: 1px solid rgba(251,146,60,0.2);
}
.badge-convalidada {
    background: rgba(52,211,153,0.12);
    color: var(--success);
    border: 1px solid rgba(52,211,153,0.2);
}
.badge-exonerada {
    background: rgba(129,140,248,0.12);
    color: var(--accent);
    border: 1px solid rgba(129,140,248,0.2);
}

/* ---- TABLE ---- */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
thead {
    background: rgba(255,255,255,0.03);
}
th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
td {
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
tr:last-child td {
    border-bottom: none;
}
tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* ---- STAT CARD ---- */
.stat-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}
.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.stat-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: 0.25rem;
}

/* ---- PROGRESS ---- */
.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 9999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--accent), #a78bfa);
    transition: width 0.6s ease;
}

/* ---- ALERTS / TOAST ---- */
.alert {
    padding: 0.875rem 1.125rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.alert-success {
    background: rgba(52,211,153,0.1);
    color: var(--success);
    border-color: rgba(52,211,153,0.2);
}
.alert-danger {
    background: rgba(248,113,113,0.1);
    color: var(--danger);
    border-color: rgba(248,113,113,0.2);
}
.alert-warning {
    background: rgba(251,191,36,0.1);
    color: var(--warning);
    border-color: rgba(251,191,36,0.2);
}
.alert-info {
    background: rgba(96,165,250,0.1);
    color: var(--info);
    border-color: rgba(96,165,250,0.2);
}

/* ---- SIDEBAR ---- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 50;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}
.sidebar-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
}
.sidebar-nav a.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.sidebar-nav a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.5;
}
.sidebar-nav a:hover svg { opacity: 0.8; }
.sidebar-nav a.active svg { opacity: 1; }
.sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---- SIDEBAR OVERLAY (mobile) ---- */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ---- MAIN CONTENT (panel with sidebar) ---- */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    padding: 1.5rem;
    overflow-x: hidden;
    max-width: 100%;
}

/* ---- TOPBAR ---- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.topbar-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0.375rem;
    border-radius: var(--radius-sm);
}
.menu-toggle:hover {
    background: rgba(255,255,255,0.05);
}

/* ---- MODAL ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-box {
    position: relative;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-3xl);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 12px 60px rgba(0,0,0,0.5);
    max-width: 520px;
    width: 100%;
    padding: 2rem;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.open .modal-box {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover { color: #fff; }

/* ---- FILE UPLOAD ---- */
.file-upload {
    position: relative;
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.file-upload:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.03);
}
.file-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.file-upload-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 0.5rem;
    color: rgba(255,255,255,0.3);
}
.file-upload-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}
.file-upload-name {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 0.5rem;
    display: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: flex;
    }
    .topbar-title {
        font-size: 1rem;
    }
}
@media (max-width: 640px) {
    .main-content {
        padding: 0.75rem;
    }
    .topbar {
        padding: 0.5rem 0.75rem;
        margin-bottom: 1rem;
    }
    .stat-value {
        font-size: 1.375rem;
    }
    .modal-box {
        padding: 1.5rem;
        border-radius: var(--radius-2xl);
    }
}

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}
.empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: rgba(255,255,255,0.15);
}
.empty-state-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.375rem;
}
.empty-state-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
}

/* ---- LOGIN PAGE ---- */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.login-card {
    position: relative;
    z-index: 10;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.06);
    max-width: 420px;
    width: 100%;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.06);
}
.login-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-3xl) + 1px);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 40%, transparent 60%, rgba(255,255,255,0.04));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.4s ease forwards;
}
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ---- MISC ---- */
.text-gradient {
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

/* ---- AUTH PAGE SPECIFIC ---- */
.auth-page {
    background: var(--bg-primary);
}

/* ---- CHARTS ---- */
.chart-wrapper {
    overflow: hidden;
}
.chart-container {
    position: relative;
    max-height: 260px;
    height: 260px;
}
.chart-container canvas {
    max-height: 260px;
}

/* ---- ONBOARDING ---- */
.onboarding-step {
    transition: all 0.3s ease;
}

/* ---- TIMELINE RESPONSIVE ---- */
@media (max-width: 640px) {
    .timeline-item {
        flex-direction: column;
    }
}

/* ============================================
   SOPORTE / TICKETS
   ============================================ */

#ticketMessages {
    min-height: 0;
    scroll-behavior: smooth;
}
#ticketMessages > .flex {
    animation: fadeIn 0.3s ease forwards;
}

/* Light theme overrides for ticket components */
.light-theme .file-upload {
    border-color: rgba(0,0,0,0.12);
}
.light-theme .file-upload:hover {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.2);
}
.light-theme .file-upload-icon { color: rgba(0,0,0,0.3); }
.light-theme .file-upload-text { color: rgba(0,0,0,0.4); }

/* Responsive ticket table */
@media (max-width: 768px) {
    .table-container table {
        font-size: 0.8rem;
    }
    .table-container th:nth-child(4),
    .table-container td:nth-child(4),
    .table-container th:nth-child(5),
    .table-container td:nth-child(5) {
        display: none;
    }
}
@media (max-width: 480px) {
    .table-container th:nth-child(3),
    .table-container td:nth-child(3) {
        display: none;
    }
}

/* Sidebar export dropdown */
.sidebar-dropdown.open .hidden {
    display: block !important;
}
.sidebar-dropdown.open button svg:last-child {
    transform: rotate(180deg) !important;
}

/* WhatsApp-style bubbles */
.chat-bubble-mine {
    background: #005c4b;
    color: #fff;
    border-radius: 16px 16px 4px 16px;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    word-wrap: break-word;
}
.chat-bubble-other {
    background: #1f2c33;
    color: #e9edef;
    border-radius: 16px 16px 16px 4px;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    word-wrap: break-word;
}
#ticketMessages::-webkit-scrollbar { width: 4px; }
#ticketMessages::-webkit-scrollbar-track { background: transparent; }
#ticketMessages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
