:root {
    --bg-color: #fafaf9;
    --card-bg: #ffffff;

    --text-main: #1c1917;
    --text-muted: #57534e;
    --text-light: #a8a29e;

    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    --accent-color: #4f46e5;
    --accent-subtle: #eef2ff;
    --success-color: #10b981;
    --error-color: #ef4444;

    --brand-color-1: 79, 70, 229;
    --brand-color-2: 236, 72, 153;

    --border-light: #e5e5e5;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

::selection {
    background: var(--accent-subtle);
    color: var(--accent-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 16px;
}

.hidden {
    display: none !important;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
}

.logo {
    font-size: 24px;
    letter-spacing: -0.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-color);
    font-weight: 700;
}

.user-info-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-btn:hover {
    color: var(--accent-color);
    background: var(--accent-subtle);
}

.nav-btn.primary {
    background: var(--text-main);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.nav-btn.primary:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

main {
    padding-top: 90px;
    padding-bottom: 40px;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.1);
}

.hero {
    text-align: center;
    padding: 60px 20px 80px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-subtle);
    color: var(--accent-color);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -1px;
}

.hero h1 span {
    font-style: italic;
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.cta {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: var(--radius-pill);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.4);
}

.mood-tracker.card {
    max-width: 850px;
    margin: 0 auto 40px;
}

.mood-tracker h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.mood-tracker p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.mood-options-primary {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
}

.mood-main-btn {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.mood-main-btn .emoji {
    font-size: 2.5rem;
    transition: transform 0.2s;
}

.mood-main-btn .mood-label {
    font-size: 0.8rem;
    margin-top: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.mood-main-btn:hover {
    border-color: var(--accent-color);
}

.mood-main-btn:hover .emoji {
    transform: scale(1.15);
}

.mood-main-btn.selected {
    background: var(--accent-subtle);
    border-color: var(--accent-color);
    box-shadow: inset 0 0 0 1px var(--accent-color);
}

.mood-main-btn.selected .mood-label {
    color: var(--accent-color);
}

#sub-mood-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

#sub-mood-options button {
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

#sub-mood-options button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: #fff;
    transform: translateY(-2px);
}

#sub-mood-options button.selected {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

textarea,
input,
select {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    color: var(--text-main) !important;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
    resize: vertical;
}

textarea:focus,
input:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-subtle);
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

.cta-small {
    width: 100%;
    padding: 14px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

.cta-small:hover {
    opacity: 0.9;
}

.report-section {
    text-align: center;
    padding: 30px 0;
}

.status-msg {
    margin-bottom: 20px;
    color: var(--success-color);
    font-weight: 500;
}

#btn-generate-report {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 20px 30px;
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 600px) {
    #btn-generate-report {
        padding: 15px 30px;
        font-size: 0.9rem;
        font-weight: 600;
    }
}

#btn-generate-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(236, 72, 153, 0.5);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
}

.modal-center {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2001;
    overflow-y: auto;
    /* ESTO permite que si el modal es más alto que la pantalla, se pueda bajar */
    -webkit-overflow-scrolling: touch;
    /* Scroll suave en iOS */
}

.modal-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.modal-x {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.modal-x:hover {
    background: #f3f4f6;
    color: var(--text-main);
}

#auth-title {
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.input-group-modal {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

#btn-auth-action {
    width: 100%;
    padding: 14px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
}

#btn-auth-action:hover {
    background: black;
}

.auth-toggle {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--accent-color);
    cursor: pointer;
    font-weight: 500;
}

.auth-toggle:hover {
    text-decoration: underline;
}

#report-content {
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
    padding: 30px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--accent-color);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-top: 20px;
    text-align: left;
}

#mood-history-timeline {
    margin-top: 20px;
}

.timeline-item {
    display: flex;
    gap: 15px;
    padding-bottom: 25px;
    border-left: 2px solid var(--border-light);
    margin-left: 10px;
    padding-left: 25px;
    position: relative;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
}

.timeline-date {
    min-width: 50px;
    text-align: center;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.timeline-date .day {
    font-size: 1.6rem;
    display: block;
}

.timeline-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
    justify-content: space-between;
    flex-wrap: wrap;

    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(var(--brand-color-1), 0.08) 15%,
            rgba(var(--brand-color-2), 0.08) 25%,
            rgba(255, 255, 255, 0) 100%);
}


#profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
}

.edit-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--text-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    cursor: pointer;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-aurora {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    animation: breathe 2s infinite ease-in-out;
    margin-bottom: 20px;
}

.soft-glow {
    font-size: 1.5rem;
    color: var(--text-main);
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    }
}

.footer {
    background: #fff;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    padding: 50px 20px 20px;
    color: var(--text-muted);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-wsp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
    transition: transform 0.2s, box-shadow 0.2s;
}

.footer-wsp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-light);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-contact {
        align-items: center;
    }
}

.admin-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.tab-btn:hover {
    color: var(--text-main);
}

.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.employee-card {
    border: 1px solid var(--border-light);
    padding: 20px;
    border-radius: var(--radius-md);
    background: #f8fafc;
    transition: 0.2s;
}

.employee-card:hover {
    border-color: var(--accent-color);
    background: #fff;
}

.emp-role {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--text-main);
    color: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
}

.emp-role.admin {
    background: var(--accent-color);
}

.inbox-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--text-muted);
    box-shadow: var(--shadow-sm);
}

.msg-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-box {
    padding: 15px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid transparent;
}

.stat-box.success {
    background: #ecfdf5;
    border-color: #d1fae5;
    color: #065f46;
}

.stat-box.error {
    background: #fef2f2;
    border-color: #fee2e2;
    color: #991b1b;
}

.stat-box.neutral {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: var(--text-muted);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#attendance-calendar-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.calendar-month {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    background: #fff;
}

.calendar-month h4 {
    margin-bottom: 15px;
    color: var(--text-main);
    text-transform: capitalize;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.day-header {
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 5px;
}

.day-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: transform 0.2s;
}

.day-cell:hover {
    transform: scale(1.1);
    z-index: 2;
}

.day-positive {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.day-negative {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.day-absent {
    background-color: #f3f4f6;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
}

.day-future {
    background-color: transparent;
    color: var(--border-light);
    border: 1px dashed var(--border-light);
    opacity: 0.4;
}

.day-empty {
    background: transparent;
}

.is-weekend {
    font-weight: 700;
}

.risk-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    animation: pulseRed 2s infinite;
    z-index: 10;
}

@keyframes pulseRed {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.risk-alert-btn {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.urgency-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}


@media (min-width: 600px) {
    .mood-options-primary {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 900px) {
    .mood-options-primary {
        grid-template-columns: repeat(6, 1fr);
    }

    .hero h1 {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 80px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .container {
        padding: 0;
    }

    .card {
        padding: 25px 20px;
        border-radius: var(--radius-md);
    }

    .hero {
        padding-top: 40px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    header {
        height: 60px;
    }

    nav {
        padding: 0 15px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .profile-header {
        flex-direction: row !important;
        text-align: left !important;
        align-items: center !important;
        gap: 1px !important;
        padding: 20px 5px !important;
        border-radius: var(--radius-lg);
        margin-bottom: 15px !important;
        box-shadow: var(--shadow-sm);
        background: linear-gradient(90deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(var(--brand-color-1), 0.08) 20%,
                rgba(var(--brand-color-2), 0.08) 27%,
                rgba(255, 255, 255, 0) 20%);
    }

    .avatar-upload {
        width: 80px !important;
        height: 80px !important;
        flex-shrink: 0;
    }

    .admin-controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .admin-controls button {
        width: 100%;
    }

    .risk-badge {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 20px;
        display: inline-block;
    }
}

@media (max-width: 380px) {
    .logo span {
        display: none;
    }

    .logo::after {
        content: 'Bk';
        font-weight: bold;
        color: var(--accent-color);
    }

    .nav-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .mood-options-primary {
        gap: 10px;
    }

    .mood-main-btn {
        padding: 10px;
    }

    .mood-main-btn .emoji {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .modal-card {
        padding: 30px 20px;
    }

    .day-cell {
        font-size: 0.75rem;
        border-radius: 4px;
    }

    .days-grid {
        gap: 3px;
    }
}


#admin-company-name {
    margin-left: 15px;
}

.header-with-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
}

.header-with-meta h3 {
    margin: 0;
    font-size: 1.5rem;
}

.meta-counts {
    display: flex;
    gap: 10px;
}

.count-pill {
    font-size: 0.8rem;
    padding: 6px 12px;
    background: var(--bg-color);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.count-pill.admin {
    background: #eff6ff;
    color: var(--accent-color);
    border-color: #dbeafe;
}

.pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px dashed var(--border-light);
}

.load-more-btn {
    width: 100%;
    max-width: 350px;
    background: #fff;
    border: 1px dashed var(--text-light);
    color: var(--text-muted);
    padding: 12px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--bg-color);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    border-style: solid;
}

@media (max-width: 600px) {
    .header-with-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-counts {
        width: 100%;
        justify-content: flex-start;
    }
}

.search-bar-container {
    position: relative;
    margin-bottom: 25px;
    max-width: 100%;
}

#admin-search-input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

#admin-search-input:focus {
    background-color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-subtle);
}

#btn-clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

#btn-clear-search:hover {
    background-color: #f1f5f9;
    color: var(--error-color);
}

.searching-mode .employee-card {
    border-left: 4px solid var(--accent-color);
}

@media (max-width: 600px) {
    #admin-search-input {
        font-size: 0.95rem;
        padding: 12px 40px 12px 15px;
    }
}

button:disabled,
.cta:disabled,
.nav-btn:disabled {
    background-color: var(--text-light) !important;
    color: #fff !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}


@media (max-width: 768px) {
    #btn-back-to-dashboard {
        width: 100%;
        justify-content: center;
    }
}

.employee-card {
    position: relative;
}

.card-menu-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 10;
}

.card-menu-btn:hover {
    color: var(--text-main);
    background-color: #f1f5f9;
}

.card-menu-dropdown {
    position: absolute;
    top: 35px;
    right: 10px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 140px;
    display: none;
    z-index: 20;
    overflow: hidden;
    animation: fadeInMenu 0.15s ease-out;
}

.card-menu-dropdown.active {
    display: block;
}

.menu-option-delete {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background: white;
    border: none;
    color: var(--error-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.menu-option-delete:hover {
    background: #fef2f2;
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 40px 20px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.pricing-card.highlight {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 20px 0;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    padding: 0 20px;
}

.features-list li {
    margin-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 5px;
}


.inbox-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    border-left: 5px solid var(--accent-color);
}

.msg-card:not(.read-msg) {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
    transform: translateX(5px);
}

.msg-card:not(.read-msg) .msg-content {
    color: var(--text-main);
    font-weight: 500;
}

.msg-card.read-msg {
    background: #fafaf9;
    border-left-color: #d6d3d1;
    opacity: 0.85;
}

.msg-card.read-msg .msg-content {
    color: var(--text-muted);
}

.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.msg-date {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-badge {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.msg-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.msg-actions {
    display: flex;
    justify-content: flex-end;
    border-top: 1px dashed var(--border-light);
    padding-top: 15px;
}

.btn-toggle-read {
    background: transparent;
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-toggle-read:hover {
    background: #fff;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-toggle-read.is-read-btn {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.report-card-admin {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.report-card-admin:hover {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.report-card-admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0.5;
}

.report-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.report-preview {
    font-size: 0.9rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.view-btn-sm {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}


.notes-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 20px;
}

.notes-sidebar {
    background: #f8fafc;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    height: fit-content;
}

.calendar-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header-nav h4 {
    margin: 0;
    font-size: 1rem;
    text-transform: capitalize;
}

.nav-btn-mini {
    height: 38px !important;
    padding: 0 16px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
}

.nav-btn-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.btn-consultar {
    background: #0f172a !important;
    color: #fff !important;
    border: none !important;
}

.btn-consultar:hover {
    background: #1e293b !important;
}

/* Botón Continuar (Color del Tema) */
.btn-continuar-draft {
    background: #ffffff !important;
    border: 2px solid #f59e0b !important;
    color: #f59e0b !important;
}

.btn-continuar-draft:hover {
    background: #fef3c7 !important;
}

.btn-discard-red {
    width: 38px;
    min-width: 38px;
    padding: 0 !important;
    color: #ef4444 !important;
    border: 1px solid #fee2e2 !important;
    background: #fff;
}

.btn-discard-red:hover {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
}

.btn-discard-red svg {
    width: 18px;
    height: 18px;
}

.cal-day-btn {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid transparent;
    background: white;
    position: relative;
    transition: all 0.2s;
}

.cal-day-btn:hover {
    border-color: var(--accent-color);
}

.cal-day-btn.selected {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

.cal-day-btn.empty {
    background: transparent;
    cursor: default;
}

.has-note-dot {
    width: 5px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
}

.cal-day-btn.selected .has-note-dot {
    background: #fff;
}

.legend-box {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.dot-legend {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
}

.notes-editor-area {
    display: flex;
    flex-direction: column;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

#selected-date-label {
    font-size: 1.1rem;
    font-weight: 700;
}

.privacy-badge {
    font-size: 0.75rem;
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

#admin-note-input {
    flex: 1;
    min-height: 300px;
    padding: 20px;
    line-height: 1.6;
    border: 1px solid var(--border-light);
    background: #fff;
    resize: none;
}

#admin-note-input:focus {
    background: #fff;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

#btn-save-note {
    margin-left: 10px;
}

@media (max-width: 768px) {
    .notes-layout {
        grid-template-columns: 1fr;
    }

    .notes-sidebar {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    #admin-note-input {
        min-height: 200px;
    }
}

.pricing-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto 40px auto;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card .features-list {
    flex-grow: 1;
    margin-bottom: 25px;
}

.pricing-card .cta-small {
    margin-top: auto;
}

@media (max-width: 1024px) {
    .pricing-card.highlight {
        transform: scale(1);
        border-width: 2px;
    }

    .pricing-card.highlight:hover {
        transform: translateY(-5px);
    }
}


.corporate-plan-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.corporate-card {
    background: #1c1917;
    color: white;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 20px;
    padding: 40px;
    text-align: center;
}

.corporate-card .features-list {
    margin-bottom: 0;
}

.corporate-card .cta {
    margin-top: 0;
}

@media (max-width: 900px) {
    .corporate-card {
        max-width: 400px;
    }
}


.billing-actions-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-light);
}

#btn-show-upgrade {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
}

#btn-show-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

#btn-open-card-modal {
    background: #f8fafc;
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

#btn-open-card-modal:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

#btn-cancel-sub {
    background: transparent;
    color: var(--error-color);
    border: 1px solid transparent;
}

#btn-cancel-sub:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

@media (max-width: 600px) {
    .billing-actions-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .billing-actions-wrapper button,
    .billing-actions-wrapper a {
        width: 100%;
        text-align: center;
    }
}

.emp-status-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.employee-card.inactive {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.65;
    order: 2;
}

.employee-card.inactive:hover {
    opacity: 0.95;
    border-color: #cbd5e1;
}

.employee-card.inactive h4,
.employee-card.inactive p {
    color: #64748b;
}

.employee-card.active {
    order: 1;
}

.menu-option-reactivate {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background: white;
    border: none;
    color: var(--success-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.menu-option-reactivate:hover {
    background: #ecfdf5;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
    border: 1px solid var(--border-light);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background-color: #f8fafc;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background-color: var(--accent-subtle);
}

.chart-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    min-height: 250px;
    position: relative;
}

#emp-report-table-container,
#report-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
}

.data-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table th {
    background-color: #f8fafc;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: var(--accent-subtle);
}

.chart-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    min-height: 300px;
    position: relative;
    width: 100%;
}

@media (max-width: 600px) {

    #emp-report-export,
    #report-export-controls {
        flex-direction: column;
        width: 100%;
    }

    #emp-report-export button,
    #report-export-controls button {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    #emp-report-type,
    #report-type-selector,
    #btn-run-emp-report,
    #btn-run-report {
        width: 100%;
        max-width: 100%;
    }

    #emp-report-charts,
    #report-charts-container {
        grid-template-columns: 1fr;
    }
}

.note-content-box {
    white-space: pre-wrap;
    line-height: 1.6;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.note-signature {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-light);
    font-size: 0.8rem;
}

.note-author {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.note-email {
    color: var(--text-light);
    font-style: italic;
}

.data-table td {
    vertical-align: top;
}

.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.toggle-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s;
    position: relative;
}

.toggle-label.active {
    color: var(--text-main);
}

.discount-badge {
    position: absolute;
    top: -25px;
    right: -30px;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid #a7f3d0;
    white-space: nowrap;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--accent-color);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--text-main);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.expired-banner {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
    animation: fadeInMenu 0.4s ease-out;
}

.expired-banner h3 {
    margin-bottom: 10px;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.expired-banner p {
    margin-bottom: 0;
    color: #7f1d1d;
    font-size: 1.05rem;
    line-height: 1.6;
}

.floating-wsp {
    position: fixed;
    bottom: 60px;
    right: 30px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse-wsp 2.5s infinite;
}

.floating-wsp:hover {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-wsp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 610px) {
    .floating-wsp {
        display: none;
    }

    .floating-wsp svg {
        display: none;
    }
}

.menu-option-edit {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background: white;
    border: none;
    color: #3b82f6;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.menu-option-edit:hover {
    background: #eff6ff;
}


.legal-block {
    text-align: left;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.legal-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.4;
}

.legal-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-color);
    cursor: pointer;
    flex-shrink: 0;
}

.legal-label a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.legal-label a:hover {
    text-decoration: underline;
}

.b2b-warning {
    background: #fef2f2;
    border-left: 4px solid #ffd0d0;
    color: grey;
    padding: 12px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
    line-height: 1.5;
}

.medical-disclaimer {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.medical-disclaimer strong {
    color: var(--text-main);
}

.hero-buttons-wrapper {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

@media (max-width: 600px) {

    .hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .hero-buttons-wrapper {
        flex-direction: column;
        width: 100%;
        padding: 0 10px;
        gap: 12px;
    }

    .hero-buttons-wrapper button {
        width: 100%;
        padding: 16px;
        font-size: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 768px) {

    nav {
        padding: 0 15px;
    }

    .auth-buttons {
        display: flex;
        gap: 8px;
    }

    #btn-login,
    #btn-register {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

@media (max-width: 400px) {
    #btn-login {
        font-size: 0px !important;
        padding: 6px 10px;
    }

    #btn-login::after {
        content: "Entrar";
        font-size: 0.75rem;
    }

    #btn-register {
        font-size: 0px !important;
        padding: 6px 10px;
    }

    #btn-register::after {
        content: "Empresas";
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    #view-features {
        padding: 40px 15px !important;
    }

    .features-grid {
        gap: 15px;
    }

    #view-features .card {
        padding: 20px 20px 25px !important;
    }

    #view-features h3 {
        font-size: 1.1rem;
    }

    #view-features p {
        font-size: 0.9rem;
    }
}


.employee-card p,
.msg-content,
.note-email {
    word-break: break-word;
    overflow-wrap: break-word;
}

.modal-center {
    padding: 15px;
}

.modal-card {
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table th,
.data-table td {
    white-space: nowrap;
}

.chart-wrapper canvas {
    max-width: 100% !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
    font-size: 16px !important;
}


.support-payment-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.support-payment-link:hover {
    color: var(--accent-color);
}

.forgot-password-link {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.forgot-password-link:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.context-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.context-btn {
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.context-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.context-btn.selected {
    background: var(--accent-subtle);
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
    font-weight: 600;
}

@media (max-width: 400px) {
    .context-btn {
        font-size: 0.85rem;
        padding: 8px 15px;
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
    }

    .context-btn[data-context="Todo en general"] {
        flex: 1 1 100%;
    }
}

@media (max-width: 950px) and (min-width: 601px) {
    #emp-report-charts {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #emp-report-charts .chart-wrapper:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .chart-wrapper {
        min-height: 280px !important;
        padding: 15px !important;
    }

    .context-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

.data-table td {
    max-width: 250px;
    white-space: normal !important;
    word-wrap: break-word;
}


@media (max-width: 480px) {
    .modal-toggle-wrapper {
        transform: scale(0.85);
        transform-origin: center;
        margin-bottom: 5px !important;
    }

    .btn-upgrade-option {
        font-size: 0.85rem;
        padding: 12px;
    }
}


@media (max-width: 360px) {
    .modal-toggle-wrapper {
        transform: scale(0.75);
    }

    .modal-toggle-wrapper .discount-badge {
        top: -20px;
        right: -10px;
    }
}

@media (max-width: 400px) {

    #btn-upgrade-pymes,
    #btn-upgrade-empresas {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 5px;
        text-align: left;
    }

    #price-pymes,
    #price-empresas {
        align-self: flex-start;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .admin-controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .admin-controls button {
        width: 100%;
    }
}

#floating-inbox-btn {
    position: fixed;
    right: 30px;
    top: 60px;
    width: 55px;
    height: 55px;
    background: var(--text-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#floating-inbox-btn:hover {
    transform: scale(1.1);
    background: var(--accent-color);
}

#floating-inbox-btn svg {
    width: 24px;
    height: 24px;
}

#unread-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--error-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: bounceIn 0.5s;
}

#toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-msg {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    width: 320px;
    pointer-events: auto;
    cursor: pointer;
    transform: translateX(120%);
    animation: slideInToast 0.5s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s ease;
}

.toast-msg:hover {
    background: #fff;
    transform: translateY(-2px);
}

.toast-msg h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 5px;
}

.toast-msg p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes slideInToast {
    to {
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.corp-msg-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: left;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.corp-msg-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.corp-msg-card.unread {
    background: #f0fdf4;
    border-color: #86efac;
}

.corp-msg-card.unread::before {
    content: '';
    position: absolute;
    top: 25px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: var(--success-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.msg-sender-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.msg-sender-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.msg-sender-details h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.2;
}

.msg-sender-details span {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.msg-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    white-space: pre-wrap;
    line-height: 1.6;
    margin: 0;
}

.sent-meta-badge {
    font-size: 0.75rem;
    background: var(--accent-subtle);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
}

.custom-chk-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.custom-chk-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
}

@media (max-width: 600px) {
    #toast-container {
        top: 20px;
        right: 10px;
        left: 10px;
        align-items: center;
    }

    .toast-msg {
        width: 100%;
        max-width: 100%;
    }

}


.avatar-upload {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 50%;
}

.avatar-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.avatar-loader-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.spinner-mini {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.inbox-tab {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.inbox-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.inbox-tab:hover {
    color: var(--text-main);
}

.admin-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

#floating-future-btn {
    position: fixed;
    right: 30px;
    top: 50px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#floating-future-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.5);
}

#floating-future-btn .btn-icon {
    font-size: 1.8rem;
    line-height: 1;
}

#future-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: bounceIn 0.5s;
}


.premium-future-header {
    background: linear-gradient(135deg, #312e81 0%, #7e22ce 100%);
    padding: 30px 25px 25px;
    color: white;
    position: relative;
    flex-shrink: 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}


.premium-future-header::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.future-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.sparkle-icon {
    width: 32px;
    height: 32px;
    stroke: #e9d5ff;
    fill: rgba(233, 213, 255, 0.2);
    filter: drop-shadow(0 0 8px rgba(233, 213, 255, 0.5));
    animation: rotateSparkle 8s linear infinite;
}

@keyframes rotateSparkle {
    from {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    to {
        transform: rotate(360deg) scale(1);
    }
}

.premium-future-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.future-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #c084fc;
    font-weight: 500;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
}

.premium-future-header .modal-x {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.premium-future-header .modal-x:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.05);
}

@media (max-width: 600px) {
    .premium-future-header {
        padding: 25px 15px 20px;
    }

    .sparkle-icon {
        width: 26px;
        height: 26px;
    }

    .premium-future-header h2 {
        font-size: 1.6rem;
    }

    .future-subtitle {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .premium-future-header .modal-x {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
    }
}

.future-input-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.future-input-wrapper:focus-within {
    background: #ffffff;
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}

.future-prefix {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

#future-compose-content {
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    padding: 0;
    min-height: 80px;
    font-size: 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
}

#future-compose-content::placeholder {
    color: #94a3b8;
}

.compose-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.compose-footer .char-count {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.compose-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cancel-compose-btn {
    font-size: 0.85rem;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
}

.cancel-compose-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.premium-post-btn {
    margin-top: 0;
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.premium-post-btn svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

.premium-post-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
}


@media (max-width: 600px) {
    .premium-future-compose-section {
        padding: 15px;
    }

    .compose-prompt-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
        text-align: center;
    }


    .post-type-selector {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px !important;
        width: 100%;
        margin-bottom: 15px;
        background: #f1f5f9;
        padding: 4px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
    }

    .post-type-btn {
        margin: 0;
        padding: 8px 1px !important;
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;

        font-size: 0.65rem !important;
        font-weight: 700;
        letter-spacing: -0.2px;

        background: transparent;
        border: none;
        border-radius: 8px;
        color: #64748b;
        box-shadow: none;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .post-type-btn svg {
        width: 16px;
        height: 16px;
        margin: 0;
    }

    .post-type-btn.active {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .post-type-btn.active[data-type="manifestation"] {
        background: #ffffff;
        color: #9333ea;
        box-shadow: 0 2px 6px rgba(147, 51, 234, 0.15);
    }

    .post-type-btn.active[data-type="question"] {
        background: #ffffff;
        color: #ea580c;
        box-shadow: 0 2px 6px rgba(234, 88, 12, 0.15);
    }

    .post-type-btn.active[data-type="normal"] {
        background: #ffffff;
        color: #0284c7;
        box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15);
    }

    .compose-avatar {
        display: none !important;
    }

    .future-compose-wrapper {
        margin-top: 15px;
        gap: 0;
    }

    .future-input-wrapper {
        padding: 12px 15px;
        border-radius: 12px;
    }


    .future-prefix {
        font-size: 0.8rem !important;
        margin-bottom: 6px;
        line-height: 1.2;
        text-align: left;
    }


    #future-compose-content {
        min-height: 60px;
        font-size: 0.9rem !important;
        line-height: 1.4;
    }

    #future-compose-content::placeholder {
        font-size: 0.85rem;
    }


    .compose-footer {
        margin-top: 12px;
        gap: 10px;
    }


    .compose-footer .char-count {
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .compose-actions {
        gap: 8px;
    }

    .cancel-compose-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
        border-radius: 8px;
    }

    .premium-post-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        border-radius: 20px;
    }

    .premium-post-btn svg {
        width: 14px;
        height: 14px;
    }
}


@media (max-width: 360px) {

    .post-type-btn {
        font-size: 0.7rem;
        gap: 4px;
    }

    .post-type-btn svg {
        width: 12px;
        height: 12px;
    }

    .premium-post-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .cancel-compose-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
}




.future-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.future-card-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 15px 0;
    padding-left: 15px;
    border-left: 3px solid #a855f7;
}

.btn-support {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-support:hover {
    background: #e2e8f0;
}

.btn-support.supported {
    background: #fce7f3;
    color: #db2777;
}

.btn-support.supported .heart-icon {
    animation: heartBeat 0.3s forwards;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.future-comment-area {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-light);
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: var(--radius-md);
}

@media (max-width: 600px) {
    #floating-future-btn .btn-icon {
        font-size: 1.4rem;
    }
}





.premium-future-compose-section {
    padding: 20px 25px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    position: relative;
}

.compose-prompt-title {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
    margin: 0 0 15px 0;
    letter-spacing: -0.2px;
}




.post-type-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.post-type-selector::-webkit-scrollbar {
    display: none;
}

.post-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}


.post-type-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}


.post-type-btn:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--text-main);
    transform: translateY(-2px);
}


.post-type-btn.active[data-type="manifestation"] {
    background: #f3e8ff;
    color: #9333ea;
    border-color: #d8b4fe;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.15);
}

.post-type-btn.active[data-type="question"] {
    background: #ffedd5;
    color: #ea580c;
    border-color: #fdba74;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.15);
}

.post-type-btn.active[data-type="normal"] {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #7dd3fc;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
}


.post-type-btn.active svg {
    transform: scale(1.15);
}

.future-compose-wrapper {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    animation: slideDownFade 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}





.prefix-manifestation {
    color: #9333ea;
    display: block;
}

.prefix-question {
    color: #ea580c;
    display: block;
}

.prefix-normal {
    display: none;
}

.card-border-manifestation {
    border-left: 3px solid #a855f7 !important;
}

.card-border-question {
    border-left: 3px solid #f97316 !important;
}

.card-border-normal {
    border-left: 3px solid #38bdf8 !important;
}



@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.compose-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.compose-content-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (max-width: 768px) {

    #future-wall-modal .modal-center {
        padding: 0;
    }

    #future-wall-modal .modal-card {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
    }

    #future-wall-modal>.modal-center>.modal-card>div:nth-child(2) {
        padding: 15px !important;
    }

    #future-feed-list {
        padding: 15px;
    }

    #future-wall-modal .modal-x {
        top: 15px;
        right: 15px;
    }
}

.request-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    border-left: 5px solid var(--text-light);
    transition: transform 0.2s;
}

.request-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.request-card.pending {
    border-left-color: #f59e0b;
}

.request-card.approved {
    border-left-color: #10b981;
}

.request-card.rejected {
    border-left-color: #ef4444;
}


.req-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.req-type-badge {
    background: var(--bg-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
}

.req-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #b45309;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.req-attachment {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
    background: #f0f9ff;
    padding: 5px 10px;
    border-radius: 4px;
}

.req-attachment:hover {
    text-decoration: underline;
}

.badge-count {
    background: var(--error-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    vertical-align: top;
    margin-left: 5px;
}

.req-response-box {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-light);
    font-size: 0.9rem;
    color: var(--text-muted);
}


.calendar-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.calendar-filters input,
.calendar-filters select {
    padding: 10px;
    font-size: 0.9rem;
    min-width: 150px;
}

.calendar-legend {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.timeline-container {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: relative;
}

#timeline-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

#timeline-table th,
#timeline-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.8rem;
    height: 50px;
}

#timeline-table td:first-child,
#timeline-table th:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 10;
    text-align: left;
    min-width: 180px;
    border-right: 2px solid var(--border-light);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

#timeline-table th {
    background: #f8fafc;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 5;
}

#timeline-table th:first-child {
    z-index: 20;
}


.event-block {
    display: block;
    width: 100%;
    height: 24px;
    border-radius: 4px;
    position: relative;
    cursor: help;
    transition: transform 0.1s;
}

.event-block:hover {
    transform: scale(1.2);
    z-index: 50;
}


.evt-vacaciones {
    background: #10b981;
}


.evt-medica {
    background: #3b82f6;
}


.evt-personal {
    background: #f59e0b;
}


.evt-otro {
    background: #8b5cf6;
}


@media (max-width: 600px) {
    .calendar-filters {
        flex-direction: column;
    }

    .calendar-filters input,
    .calendar-filters select {
        width: 100%;
    }
}


#request-modal .input-group-modal>div[style*="display: flex"] {
    flex-direction: row;
}

@media (max-width: 600px) {

    #request-modal .input-group-modal>div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 5px !important;
    }

    .modal-card {
        padding: 25px 15px !important;
    }
}

@media (max-width: 600px) {

    #timeline-table td:first-child,
    #timeline-table th:first-child {
        min-width: 110px !important;
        max-width: 110px !important;
        font-size: 0.7rem !important;
        padding: 5px !important;
        white-space: normal;
        line-height: 1.2;
    }

    #timeline-table th:not(:first-child),
    #timeline-table td:not(:first-child) {
        min-width: 25px !important;
        padding: 5px 2px !important;
        font-size: 0.7rem !important;
    }

    .calendar-filters input,
    .calendar-filters select {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 400px) {
    .admin-tabs {
        flex-direction: column;
        gap: 5px;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-light);
        padding: 12px;
    }

    .tab-btn.active {
        background-color: var(--accent-subtle);
        border-bottom-color: var(--accent-color);
    }
}


#admin-req-search-input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

#admin-req-search-input:focus {
    background-color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-subtle);
}

#btn-clear-req-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

#btn-clear-req-search:hover {
    background-color: #f1f5f9;
    color: var(--error-color);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: #fff;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-main);
}

.doc-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.doc-icon {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.doc-info {
    flex-grow: 1;
    overflow: hidden;
}

.doc-info h4 {
    margin: 0 0 3px 0;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--accent-color);
}

.doc-info span {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.doc-download-btn {
    background: #f1f5f9;
    color: var(--text-muted);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

.doc-card:hover .doc-download-btn {
    background: var(--accent-subtle);
    color: var(--accent-color);
}


.profile-actions-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
}

#btn-back-to-dashboard:hover {
    color: var(--text-main) !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 768px) {
    #btn-back-to-dashboard {
        justify-content: center;
        width: 100%;
    }

    .profile-actions-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
        width: 100%;
    }

    .profile-actions-wrapper button {
        padding: 10px 5px !important;
        font-size: 0.75rem !important;
        justify-content: center;
    }
}


.profile-info-row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 10px 0;
    justify-content: space-between;
}

.user-main-data-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bday-badge-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    user-select: none;
}

.bday-badge-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.bday-icon-frame {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.bday-waiting-premium {
    border-left: 5px solid #f59e0b;
}

.bday-waiting-premium .bday-text-main {
    color: #92400e;
    font-weight: 800;
    font-size: 0.9rem;
    display: block;
}

.bday-waiting-premium .bday-text-sub {
    color: #b45309;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.bday-today-premium {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border: none;
    padding: 12px 24px;
    animation: floatAnimation 3s ease-in-out infinite;
}

.bday-today-premium .bday-text-main {
    color: white;
    font-size: 1rem;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bday-today-premium .bday-icon-frame {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
    /*
    .profile-info-row {
        flex-direction: column;
        align-items: flex-start;
    }
*/

    .user-main-data-group {
        gap: 5px;
    }

    .bday-badge-premium {
        width: 100%;
        justify-content: center;
    }
}

.user-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
    flex: 1;
}

.user-meta h2 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta span {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .profile-info-row {
        gap: 10px;
    }

    .user-meta h2 {
        font-size: 1.3rem;
    }

    .user-meta span {
        font-size: 0.65rem;
    }


    .avatar-upload {
        width: 70px;
        height: 70px;
    }
}


.survey-question-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-color);
}

.survey-q-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.survey-option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.survey-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    text-align: left;
}

.survey-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.s-badge {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.s-badge.draft {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.s-badge.active {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.s-badge.finished {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.survey-card h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.survey-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.survey-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed var(--border-light);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}


.survey-answer-input {
    width: 100%;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    resize: vertical;
}

.survey-answer-input:focus {
    background: white;
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.survey-check-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.2s;
    background: white;
}

.survey-check-option:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.survey-check-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    margin: 0;
    cursor: pointer;
}



.filterable-stat {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.filterable-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.survey-filters-grid.filtered .filterable-stat:not(.active-filter) {
    opacity: 0.4;
    transform: scale(0.95);
    box-shadow: none;
    filter: grayscale(100%);
}

.filterable-stat.active-filter {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-width: 2px;
}


.payroll-projection-card {
    background: var(--text-main);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.payroll-projection-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.p-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.p-amount {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    margin: 5px 0 0 0;
    line-height: 1.1;
    white-space: normal;
}

.p-date {
    font-size: 0.9rem;
    color: #a7f3d0;
    margin-top: 5px;
    font-weight: 500;
}

.p-breakdown {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.p-row.success {
    color: #a7f3d0;
}

.p-row.error {
    color: #fca5a5;
}

.payment-history-item {
    background: white;
    border: 1px solid var(--border-light);
    padding: 15px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.payment-history-item .amt {
    font-weight: bold;
    color: #059669;
    font-size: 1.1rem;
}

.payroll-config-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}

input.currency-input {
    font-family: monospace;
    font-size: 1.1rem !important;
    font-weight: bold;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .payroll-config-row {
        grid-template-columns: 1fr;
        background: #f8fafc;
        padding: 10px;
        border: 1px solid var(--border-light);
        border-radius: 8px;
    }

    .payroll-config-row button {
        width: 100%;
        margin-top: 5px;
    }
}


.payroll-config-item {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.payroll-config-item:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
}

.effect-days-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
    flex-wrap: wrap;
}

.day-number-input {
    width: 65px !important;
    padding: 8px !important;
    text-align: center;
    font-weight: bold;
    color: var(--accent-color) !important;
    background: white !important;
}

@media (max-width: 600px) {
    .payroll-config-item .payroll-config-row {
        grid-template-columns: 1fr;
        background: transparent;
        padding: 0;
        border: none;
    }

    .effect-days-wrapper span {
        width: 100%;
    }
}



#sched-breaks-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.schedule-break-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 45px;
    /* Proporciones equilibradas */
    gap: 15px;
    align-items: center;
    background: #ffffff;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.schedule-break-row:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

@keyframes slideInRow {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.break-input-group input {
    width: 100%;
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    transition: all 0.2s;
}

.break-input-group input:focus {
    background: white !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px var(--accent-subtle) !important;
}

.btn-remove-break {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-break:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.mobile-only-label {
    display: none;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}


@media (max-width: 768px) {
    .schedule-break-row {
        grid-template-columns: 1fr 1fr;
        padding: 20px;
    }

    .name-field {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .schedule-break-row {
        grid-template-columns: 1fr;
        gap: 12px;
        position: relative;
    }

    .mobile-only-label {
        display: block;
    }

    .btn-remove-break {
        position: absolute;
        top: 15px;
        right: 15px;
        background: transparent;
        border: none;
    }

    .name-field {
        grid-column: span 1;
        padding-right: 40px;
    }
}


.schedule-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-field-group {
    display: flex;
    flex-direction: column;
}

.schedule-form-grid .name-input {
    width: 100%;
    margin-bottom: 0;
}

.btn-add-break-styled {
    width: 100%;
    border: 1px dashed var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-subtle);
    padding: 12px;
    margin-bottom: 25px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn-add-break-styled:hover {
    background: var(--accent-color);
    color: white;
}

.btn-save-schedule-full {
    width: 100% !important;
    margin: 0 !important;
    padding: 16px !important;
    border-radius: 12px !important;
}

@media (max-width: 600px) {
    .schedule-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #view-sched-base .card {
        padding: 20px 15px !important;
    }

    .name-input[type="date"],
    .name-input[type="time"] {
        display: block;
        width: 100%;
    }
}



.schedule-timeline-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 20px;
}

.schedule-timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 4px;
    width: 2px;
    background: var(--border-light);
    z-index: 1;
}

.sched-tl-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.sched-tl-time {
    font-weight: 700;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-main);
    width: 60px;
    flex-shrink: 0;
    text-align: right;
    padding-top: 2px;
}

.sched-tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--accent-color);
    position: absolute;
    left: -20px;
    top: 6px;
    box-shadow: 0 0 0 4px #f8fafc;
}

.sched-tl-content {
    background: white;
    border: 1px solid var(--border-light);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    flex-grow: 1;
    box-shadow: var(--shadow-sm);
}

.sched-tl-content h5 {
    margin: 0 0 3px 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

.sched-tl-content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tl-type-event .sched-tl-dot {
    border-color: #3b82f6;
    background: #eff6ff;
}

.tl-type-event .sched-tl-content {
    border-left: 4px solid #3b82f6;
}

.tl-type-break .sched-tl-dot {
    border-color: #f59e0b;
    background: #fffbeb;
}

.tl-type-break .sched-tl-content {
    border-left: 4px solid #f59e0b;
}

.tl-type-override .sched-tl-dot {
    border-color: #ef4444;
    background: #fef2f2;
}

.tl-type-override .sched-tl-content {
    border-left: 4px solid #ef4444;
}


#request-modal .modal-backdrop {
    z-index: 2005 !important;
}

#request-modal .modal-center {
    z-index: 2006 !important;
}


.lms-module-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.lms-module-header {
    background: #f8fafc;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.lms-module-body {
    padding: 20px;
}

.lms-section-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.course-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.1);
    border-color: #93c5fd;
}

.course-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
}

.course-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.badge-showcase {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    width: 140px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.badge-showcase:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 10px 20px rgba(250, 204, 21, 0.2);
}

.badge-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fef08a 0%, #eab308 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: inset 0 -4px 10px rgba(180, 83, 9, 0.4), 0 4px 10px rgba(234, 179, 8, 0.4);
    margin-bottom: 12px;
    border: 3px solid #fff;
}

.badge-title {
    font-size: 0.8rem;
    font-weight: bold;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 5px;
}

.badge-score {
    background: #ecfdf5;
    color: #059669;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #a7f3d0;
}


.lms-index-module {
    padding: 10px 20px;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.lms-index-item {
    padding: 12px 20px 12px 30px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.2s;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lms-index-item:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.lms-index-item.active {
    background: #eff6ff;
    color: #2563eb;
    border-left-color: #2563eb;
    font-weight: 600;
}

.lms-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInMenu 0.4s ease-out;
}

@media (max-width: 900px) {
    #player-sidebar {
        position: absolute;
        left: -320px;
        top: 0;
        bottom: 0;
        z-index: 50;
        box-shadow: 10px 0 25px rgba(0, 0, 0, 0.1);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #player-sidebar.mobile-open {
        left: 0;
    }

    #player-content-area {
        padding: 20px 15px;
    }

    #btn-toggle-lms-menu {
        display: block !important;
    }
}

#course-builder-modal .nav-btn-mini {
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    height: auto;
}

#course-builder-modal .nav-btn-mini[onclick*="removeSectionQuestion"] {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}


.student-result-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.student-result-header {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    cursor: pointer;
    transition: background 0.2s;
}

.student-result-header:hover {
    background: #f1f5f9;
}

.student-result-body {
    padding: 20px;
    border-top: 1px solid var(--border-light);
    background: white;
}

.ans-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}

.ans-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}



.pulse-gold {
    animation: pulseGold 2.5s infinite;
    display: inline-block;
    padding: 5px 15px;
    border-radius: var(--radius-pill);
    background: transparent;
}

@keyframes pulseGold {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(234, 179, 8, 0);
    }

    50% {
        transform: scale(1.02);
        text-shadow: 0 0 15px rgba(234, 179, 8, 0.6);
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(234, 179, 8, 0);
    }
}



.badge-showcase.exam-badge {
    background: linear-gradient(135deg, #fff 0%, #fdf2f8 100%);
    border: 1px solid #fbcfe8;
    order: -1;
}

.badge-showcase.exam-badge:hover {
    box-shadow: 0 10px 20px rgba(219, 39, 119, 0.2);
}

.badge-showcase.exam-badge .badge-icon-wrapper {
    background: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
    box-shadow: inset 0 -4px 10px rgba(157, 23, 77, 0.4), 0 4px 10px rgba(219, 39, 119, 0.4);
}

.exam-module-card {
    background: white;
    border: 1px solid #fbcfe8;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(219, 39, 119, 0.03);
}

.exam-module-header {
    background: #fdf2f8;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #fbcfe8;
}

.exam-section-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #db2777;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}



#exam-builder-modal button,
#course-builder-modal button {
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    font-family: var(--font-body);
}

.exam-module-header button:hover {
    background: #fdf2f8 !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

#exam-modules-container .nav-btn {
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

#exam-modules-container .nav-btn:hover {
    background: #fdf2f8 !important;
    border-color: #db2777 !important;
}


.lms-module-header,
.exam-module-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lms-module-header .name-input,
.exam-module-header .name-input {
    flex: 1;
    min-width: 250px;
    max-width: none !important;
    margin-bottom: 0 !important;
}


.lms-module-header>div,
.exam-module-header>div {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 600px) {

    .lms-module-header .name-input,
    .exam-module-header .name-input {
        width: 100%;
        min-width: 100%;
    }

    .lms-module-header>div,
    .exam-module-header>div {
        width: 100%;
        justify-content: flex-end;
    }

    .lms-module-header>div button,
    .exam-module-header>div button {
        flex: 1;
        justify-content: center;
    }
}



.lms-emp-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.lms-emp-tabs::-webkit-scrollbar {
    display: none;
}

.lms-emp-tabs .inbox-tab {
    padding: 20px 15px !important;

    font-size: 1.05rem !important;
    font-weight: 600;
    letter-spacing: 0.5px;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    border-bottom-width: 4px !important;
}

.lms-emp-tabs .inbox-tab:hover {
    color: var(--accent-color);
    background-color: #f8fafc;
}

.lms-emp-tabs .inbox-tab.active {
    color: #1e3a8a !important;
    border-bottom-color: #3b82f6 !important;
}

@media (max-width: 400px) {
    .lms-emp-tabs .inbox-tab {
        padding: 15px 12px !important;
        font-size: 0.95rem !important;
    }
}



.induction-card {
    border-top: 4px solid #06b6d4 !important;
}

.ind-module-card {
    background: white;
    border: 1px solid #cffafe;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(6, 182, 212, 0.03);
}

.ind-module-header {
    background: #ecfeff;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #cffafe;
}

.ind-section-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #06b6d4;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.ind-index-item.active {
    background: #ecfeff !important;
    color: #0891b2 !important;
    border-left-color: #0891b2 !important;
}

.badge-showcase.induction-badge {
    background: linear-gradient(135deg, #fff 0%, #ecfeff 100%);
    border: 1px solid #cffafe;
    order: -2;
}

.badge-showcase.induction-badge:hover {
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.2);
}

.badge-showcase.induction-badge .badge-icon-wrapper {
    background: linear-gradient(135deg, #22d3ee 0%, #0284c7 100%);
    box-shadow: inset 0 -4px 10px rgba(8, 145, 178, 0.4), 0 4px 10px rgba(34, 211, 238, 0.4);
}



#floating-envios-btn {
    position: fixed;
    right: 30px;
    top: 70px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
    z-index: 999;
    border: 2px solid #d97706;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#floating-envios-btn:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 35px rgba(217, 119, 6, 0.4);
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

#envios-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: bounceIn 0.5s;
}

.envio-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #94a3b8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.envio-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}

.envio-card.unread {
    background: #fffbeb;
    border-left-color: #d97706;
    border-color: #fde68a;
}

.envio-chip-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #334155;
    text-decoration: none;
    transition: 0.2s;
}

.envio-chip-file:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.envio-chip-file.uploading {
    background: #ecfeff;
    border-color: #a5f3fc;
    color: #0891b2;
}

.active-archive-filter {
    background: white !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}


.email-list-container {
    display: flex;
    flex-direction: column;
    background: white;
}

.email-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    background: white;
    gap: 15px;
    position: relative;
}

.email-row:hover {
    background: #f8fafc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.email-row.unread {
    background: #fffbeb;
}

.email-row.unread .email-subject,
.email-row.unread .email-sender {
    font-weight: 800;
    color: #0f172a;
}

.email-sender {
    min-width: 160px;
    max-width: 160px;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-subject {
    flex-grow: 1;
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-date {
    font-size: 0.8rem;
    color: var(--text-light);
    min-width: 80px;
    text-align: right;
    white-space: nowrap;
}

.email-attachment-icon {
    color: #d97706;
    font-size: 1rem;
    min-width: 20px;
}

.viewers-list-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    animation: fadeInMenu 0.3s ease-out;
}

.viewer-chip {
    display: inline-block;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 4px;
    color: #0f172a;
    font-weight: 500;
}

@media (max-width: 600px) {
    .email-row {
        flex-wrap: wrap;
        padding: 12px 15px;
        gap: 8px;
    }

    .email-sender {
        min-width: 100%;
        max-width: 100%;
        font-size: 0.95rem;
        padding-right: 65px;
        box-sizing: border-box;
    }

    .email-subject {
        min-width: 100%;
        max-width: 100%;
        font-size: 0.85rem;
        padding-right: 65px;
        box-sizing: border-box;
    }

    .email-date {
        position: absolute;
        top: 12px;
        right: 15px;
    }

    .email-attachment-icon {
        position: absolute;
        bottom: 12px;
        right: 15px;
    }
}


select.name-input:invalid {
    color: var(--text-light) !important;
}

select.name-input option {
    color: var(--text-main);
}

select.name-input option[value="none"] {
    color: var(--text-light);
}


.viewers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.viewer-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.viewer-card.you {
    background: #ecfeff;
    border-color: #a5f3fc;
}

.viewer-card .avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}


#tab-env-nuevo,
#tab-env-archivo,
#tab-env-enviados,
#tab-env-recibidos {
    font-weight: 700;
    padding: 8px 10px !important;
    border-radius: 5px;
    color: white;
    background-color: #4f46e5;
}

#tab-env-nuevo {
    margin-left: 5px;
}

@media (max-width: 600px) {

    #tab-env-nuevo,
    #tab-env-archivo,
    #tab-env-enviados,
    #tab-env-recibidos {
        font-size: 0.65rem !important;
        font-weight: 700;
        padding: 8px 10px !important;
    }
}


.draggabe-signature {
    position: absolute;
    width: 160px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px dashed var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: grab;
    z-index: 100;
    user-select: none;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    transition: box-shadow 0.2s;
}

.draggabe-signature:active {
    cursor: grabbing;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-style: solid;
}

.pulse-gold {
    animation: pulseGoldBox 2s infinite;
}

@keyframes pulseGoldBox {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(217, 119, 6, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(217, 119, 6, 0);
    }
}




#envios-modal .modal-card,
#signature-workspace-modal .modal-card,
#legal-signature-modal .modal-card {
    animation: slideUpPremium 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideUpPremium {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.envios-tabs {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.envios-tabs::-webkit-scrollbar {
    display: none;
}

.premium-input {
    background: #f8fafc;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.premium-input:focus {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

@media (max-width: 900px) {

    #envios-modal .modal-center,
    #signature-workspace-modal .modal-center,
    #legal-signature-modal .modal-center {
        padding: 0 !important;
        align-items: flex-end;
    }

    #envios-modal .modal-card,
    #signature-workspace-modal .modal-card,
    #legal-signature-modal .modal-card {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        display: flex;
        flex-direction: column;
    }

    #envios-scroll-area {
        flex-grow: 1;
        overflow-y: auto;
        padding-bottom: 80px;
    }


    #signature-workspace-modal .modal-x {
        display: none !important;
    }
}


.sticky-bottom-action {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-top: 1px solid var(--border-light);
    z-index: 100;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}



.premium-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.premium-doc-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.premium-doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.premium-doc-card.is-signed {
    border-top: 4px solid #3b82f6;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.premium-doc-card.is-signed:hover {
    border-color: #93c5fd;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}

.doc-badge-signed {
    position: absolute;
    top: 25px;
    right: -45px;
    width: 160px;
    text-align: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 0px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    z-index: 100;
}

.doc-info-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.doc-icon-premium {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.doc-details-premium {
    flex-grow: 1;
    overflow: hidden;
}

.doc-details-premium h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.doc-details-premium span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.doc-actions-premium {
    display: flex;
    gap: 10px;
    margin-top: auto;
    border-top: 1px dashed var(--border-light);
    padding-top: 15px;
}

.doc-btn-view,
.doc-btn-download {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.doc-btn-view {
    background: #f1f5f9;
    color: #475569;
}

.doc-btn-view:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.doc-btn-download {
    background: #eff6ff;
    color: #2563eb;
}

.doc-btn-download:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.doc-btn-download.disabled,
.doc-btn-view.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 600px) {
    .premium-docs-grid {
        grid-template-columns: 1fr;
    }

    .doc-actions-premium {
        flex-direction: column;
    }

    .doc-btn-view,
    .doc-btn-download {
        width: 100%;
        padding: 12px;
    }
}


#btn-load-more-emp-docs {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid #cbd5e1;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#btn-load-more-emp-docs:hover:not(:disabled) {
    background: #f8fafc;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.15);
}

#btn-load-more-emp-docs:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}



.contract-dossier {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.contract-dossier-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contract-dossier-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border-light);
}

.contract-pillar {
    background: #ffffff;
    padding: 30px;
}

.pillar-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-row {
    margin-bottom: 15px;
}

.data-row label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.data-row span {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    word-break: break-word;
}

.unremovable-note {
    background: #ffffff;
    border-left: 4px solid #475569;
    padding: 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    border-top: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.unremovable-note::after {
    content: '🔒 Auditado';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.65rem;
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .contract-dossier-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contract-dossier-header button {
        width: 100%;
    }

    .contract-pillar {
        padding: 20px;
    }
}


.sec-input {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.sec-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.sec-menu-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.sec-menu-btn .sec-icon {
    font-size: 1.3rem;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.2s;
}

.sec-menu-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.sec-menu-btn.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.sec-menu-btn.active .sec-icon {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .security-layout {
        flex-direction: column;
    }

    .security-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-light);
        display: flex;
        padding: 10px !important;
        overflow-x: auto;
        white-space: nowrap;
    }

    .sec-menu-btn {
        width: auto;
        flex: 1;
        justify-content: center;
        margin-bottom: 0;
        padding: 12px;
        font-size: 0.85rem;
    }

    .security-content {
        padding: 20px 15px !important;
    }
}

.audit-log-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    border-left: 4px solid #94a3b8;
}

.audit-log-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.audit-log-card.log-password {
    border-left-color: #8b5cf6;
}

.audit-log-card.log-phone {
    border-left-color: #f59e0b;
}

.audit-log-card.log-legal {
    border-left-color: #3b82f6;
}

.audit-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.audit-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.audit-meta-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.audit-meta-value {
    font-size: 0.85rem;
    color: #0f172a;
    font-weight: 600;
}

.audit-meta-value.ip-address {
    font-family: monospace;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #a7f3d0;
    width: fit-content;
}


.session-log-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    gap: 15px;
    flex-wrap: wrap;
}

.session-log-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.session-current-badge {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.session-icon-wrapper {
    width: 45px;
    height: 45px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.session-revoke-btn {
    background: #fef2f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.session-revoke-btn:hover {
    background: #e11d48;
    color: white;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.2);
}


.input-error {
    border-color: #ef4444 !important;
    background-color: #fff5f5 !important;
    color: #991b1b !important;
}

.input-error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

@keyframes shakeAuth {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

.shake-animation {
    animation: shakeAuth 0.4s ease-in-out;
}


.landing-subnav {
    position: sticky;
    top: 70px;
    margin-top: -20px;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 990;
    transition: transform 0.3s ease;
}

.subnav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.subnav-container::-webkit-scrollbar {
    display: none;
}

.subnav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.subnav-link:hover {
    color: var(--text-main);
    background: #f1f5f9;
}

.subnav-link.active {
    color: var(--accent-color);
    background: var(--accent-subtle);
    border-color: #c7d2fe;
}

.features-tabs-scroll {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feat-tab-btn {
    background: white;
    border: 1px solid var(--border-light);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.feat-tab-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.feat-tab-btn.active {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.premium-bento-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    animation: fadeInMenu 0.5s ease-out;
    padding: 10px 0;
}

.feat-bento-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    cursor: default;
    max-width: 300px;
    min-height: 220px;
    display: flex;
    flex: 1 1 300px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feat-bento-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feat-bento-title {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 700;
    margin: 0;
    transition: 0.3s;
}

.feat-bento-overlay {
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feat-bento-overlay p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

.feat-bento-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.feat-bento-card:hover .feat-bento-overlay {
    opacity: 1;
    transform: translateY(0);
}

.feat-bento-card:hover .feat-bento-icon,
.feat-bento-card:hover .feat-bento-title {
    opacity: 0;
    transform: translateY(-20px);
}

.security-premium-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.security-premium-card {
    flex: 1 1 300px;
    max-width: 300px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    transition: all 0.3s ease;
    text-align: left;
}

.security-premium-card:hover .sec-icon-glow {
    transform: scale(1.1) translateY(-5px);
}

.security-premium-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.sec-icon-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.security-premium-card h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.security-premium-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .features-tabs-scroll {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .feat-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .landing-subnav {
        top: 60px;
    }

    .subnav-container {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    #view-contact-premium .cta {
        width: 100%;
        max-width: 320px;
        padding: 14px 20px;
        font-size: 1rem;
        justify-content: center;
        border-radius: 12px;
        box-sizing: border-box;
    }

    #view-contact-premium div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .feat-bento-card,
    .security-premium-card {
        max-width: 100% !important;
        flex: 1 1 100%;
    }
}





#floating-anon-inbox-btn {
    position: fixed;
    right: 30px;
    top: 140px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #38bdf8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 999;
    border: 2px solid rgba(56, 189, 248, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#floating-anon-inbox-btn:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    border-color: #38bdf8;
}

#floating-anon-inbox-btn svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.5));
}

#anon-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #0ea5e9;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f172a;
    animation: pulseBlue 2s infinite;
}

@keyframes pulseBlue {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

.glass-modal {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
}

.anon-msg-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.anon-msg-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #38bdf8;
    opacity: 0;
    transition: opacity 0.3s;
}

.anon-msg-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.anon-msg-card.is-new::before {
    opacity: 1;
}

.nav-label {
    display: none;
}



#mobile-action-bar {
    position: fixed;
    right: 30px;
    top: 25%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-action-bar .nav-item {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

#mobile-action-bar svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-main);
    transition: all 0.3s ease;
}

#mobile-action-bar .nav-item:hover {
    transform: scale(1.15) translateX(-5px);
    background: white;
    box-shadow: 0 15px 45px rgba(79, 70, 229, 0.15);
}

#mobile-action-bar .nav-item:hover svg {
    stroke: var(--accent-color);
}

@media (max-width: 768px) {
    #mobile-action-bar {
        top: auto;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        height: 75px;
        flex-direction: row;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0 15px calc(env(safe-area-inset-bottom) / 2) 15px;
        justify-content: space-around;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.04);
        border-radius: 0;
    }



    #mobile-action-bar .nav-item {
        width: 22%;
        height: 100%;
        background: transparent;
        box-shadow: none;
        border: none;
        border-radius: 0;
        gap: 2px;
    }

    #mobile-action-bar .nav-item:hover {
        transform: none;
    }

    #mobile-action-bar svg {
        width: 22px;
        height: 22px;
        stroke: var(--text-muted);
    }






    #floating-inbox-btn,
    #floating-future-btn,
    #floating-envios-btn,
    #floating-anon-inbox-btn {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 60px !important;
        height: 60px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        animation: none !important;
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #mobile-action-bar .hidden {
        display: none !important;
    }

    #mobile-action-bar svg,
    #mobile-action-bar .btn-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 1.3rem !important;
    }

    .nav-label {
        display: block;
        font-size: 0.6rem;
        font-weight: 700;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }


    #floating-future-btn svg {
        stroke: #a855f7;
    }

    #floating-envios-btn svg {
        stroke: #0d9488;
    }

    #floating-inbox-btn svg {
        stroke: #4f46e5;
    }

    #floating-anon-inbox-btn svg {
        stroke: #0ea5e9;
    }


    #unread-badge,
    #future-unread-badge,
    #envios-unread-badge,
    #anon-unread-badge {
        top: 2px !important;
        right: 18px !important;
        border: 2px solid white !important;
        width: 18px !important;
        height: 18px !important;
        font-size: 0.6rem !important;
    }

    #mobile-action-bar>div:active {
        transform: scale(0.9);
        opacity: 0.7;
    }

    main {
        padding-bottom: 100px !important;
    }
}


@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mood-ritual-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-mood-btn {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    padding: 10px 15px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sub-mood-btn:hover,
.sub-mood-btn.selected {
    background: var(--accent-subtle);
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: inset 0 0 0 2px var(--accent-color);
}









.header-info-group {
    width: 100%;
    margin-top: 20px;
}




.employee-profile-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.profile-sidebar {
    width: 100%;
}

.profile-content-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}



.profile-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    width: 100%;
}

.action-card-premium {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04),
        inset 0 2px 4px rgba(255, 255, 255, 1);

    will-change: transform;
    transition: transform 0.2s ease-out;

    overflow: hidden;

    min-width: 0;
    width: 100%;
    box-sizing: border-box;


}


.action-card-premium::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: var(--glow-color, #4f46e5);
    box-shadow: 0 0 15px var(--glow-color, #4f46e5);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.action-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.action-card-premium:hover::after {
    opacity: 1;
    top: 5%;
    bottom: 5%;
}

.action-card-premium:active {
    transform: scale(0.96);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-main-info {
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: none;

    width: 100%;
    min-width: 0;
}

.card-icon-circle {
    width: 44px;
    height: 44px;
    background: var(--icon-bg, #f1f5f9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}


.card-icon-circle svg {
    width: 22px;
    height: 22px;
    stroke: var(--glow-color);
    stroke-width: 1.5;
    fill: none;
    filter: drop-shadow(0 0 2px var(--glow-color));
    opacity: 0.9;
}

.action-card-premium:hover .card-icon-circle {
    transform: scale(1.1) rotate(-5deg);
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}


.card-security {
    --glow-color: #3b82f6;
    --icon-bg: #eff6ff;
}

.card-schedule {
    --glow-color: #f59e0b;
    --icon-bg: #fffbeb;
}

.card-payroll {
    --glow-color: #10b981;
    --icon-bg: #ecfdf5;
}

.card-requests {
    --glow-color: #6366f1;
    --icon-bg: #eef2ff;
}

.card-surveys {
    --glow-color: #8b5cf6;
    --icon-bg: #f5f3ff;
}

.card-vault {
    --glow-color: #475569;
    --icon-bg: #f8fafc;
}

.card-official {
    --glow-color: #0d9488;
    --icon-bg: #f0fdfa;
}

.card-academy {
    --glow-color: #ec4899;
    --icon-bg: #fdf2f8;
}

.card-billing {
    --glow-color: #8b5cf6;
    --icon-bg: #f5f3ff;
}


.card-text-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
    letter-spacing: -0.3px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 2px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}


@media (min-width: 1024px) {
    #view-library.container {
        max-width: 1600px;
        width: 96%;
        padding: 0 15px;
    }

    .employee-profile-layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 40px;
        align-items: start;
    }

    .profile-sidebar {
        position: sticky;
        top: 100px;
        z-index: 10;

        max-height: calc(100vh - 120px);
        overflow-y: auto;

        padding: 15px 15px 15px 5px;
        margin-top: -15px;
        margin-left: -5px;
    }

    .profile-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .profile-sidebar::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 10px;
    }

    .profile-actions-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .action-card-premium {
        padding: 16px 20px;
        border-radius: 16px;
        justify-content: space-between;
    }

    .card-main-info {
        flex-direction: row !important;
        align-items: center !important;
    }
}


.card-arrow {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.action-card-premium:hover .card-arrow {
    transform: translateX(5px);
    color: var(--glow-color);
}


.action-card-premium[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(1);
}

@media (max-width: 768px) {

    .header-info-group {
        padding: 0;
        margin-top: 0px;
    }

    .profile-actions-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 5px;
    }

    /*
    .card-main-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100%;
    }
*/
    .card-text-wrapper {
        width: 100%;
    }

    .action-card-premium {
        height: 100%;
        padding: 12px 12px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        min-height: 60px;
    }

    .card-icon-circle {
        width: 34px;
        height: 34px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .card-arrow {
        display: none;
    }

    .card-title {
        font-size: 0.85rem;
        line-height: 1.1;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: visible;
        min-height: auto;
        word-break: break-word;
    }


    .card-subtitle {
        display: none;
    }




    .action-card-premium::after {
        width: 3px;
        top: 20%;
        bottom: 20%;
    }
}


@media (max-width: 360px) {
    .profile-actions-grid {
        gap: 8px;
    }

    .card-title {
        font-size: 0.75rem;
    }
}


.admin-dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}


.admin-tabs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    width: 100%;
}

.admin-content-area {
    width: 100%;
    min-height: 60vh;
}



@media (min-width: 1024px) {

    #view-admin.container {
        max-width: 1600px;
        width: 96%;
        padding: 0 15px;
    }

    .admin-dashboard-layout {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 40px;
        align-items: start;
    }

    .admin-tabs-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: sticky;
        top: 100px;
        z-index: 10;
    }

    .admin-tab-card {
        padding: 16px 20px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }


    .admin-tab-card.active {
        transform: translateX(5px);
        box-shadow: -5px 10px 20px -5px var(--tab-shadow);
    }
}



.admin-tab-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.admin-tab-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--tab-color);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.tab-card-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.tab-icon-box {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.tab-icon-box svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
}

.tab-text-box {
    display: flex;
    flex-direction: column;
}

.tab-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.tab-desc {
    font-size: 0.7rem;
    color: var(--text-light);
}

.admin-tab-card.active {
    background: white;
    border-color: var(--tab-color);
    box-shadow: 0 10px 25px -5px var(--tab-shadow);
    transform: translateY(-3px);
}

.admin-tab-card.active .tab-icon-box {
    background: var(--tab-color);
    box-shadow: 0 4px 12px var(--tab-shadow);
}

.admin-tab-card.active .tab-icon-box svg {
    stroke: white;
}

.admin-tab-card.active .tab-title {
    color: var(--text-main);
}

.card-users {
    --tab-color: #4f46e5;
    --tab-shadow: rgba(79, 70, 229, 0.3);
}

.card-groups {
    --tab-color: #f59e0b;
    --tab-shadow: rgba(245, 158, 11, 0.3);
}

.card-analytics {
    --tab-color: #10b981;
    --tab-shadow: rgba(16, 185, 129, 0.3);
}

.card-surveys {
    --tab-color: #8b5cf6;
    --tab-shadow: rgba(139, 92, 246, 0.3);
}

.card-lms {
    --tab-color: #ec4899;
    --tab-shadow: rgba(236, 72, 153, 0.3);
}

@media (max-width: 768px) {
    .admin-tabs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 25px;
    }

    .admin-tab-card {
        padding: 10px 12px;
        border-radius: 14px;
        min-height: 50px;
        display: flex;
        align-items: center;
    }

    .tab-card-content {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100%;
    }

    .tab-icon-box {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .tab-icon-box svg {
        width: 16px;
        height: 16px;
    }

    .tab-text-box {
        overflow: hidden;
    }

    .tab-title {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tab-desc {
        display: none !important;
    }

    .admin-tab-card.active {
        transform: scale(1.02);
    }
}




.admin-controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.ctrl-btn-premium {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 0 1 auto;
}

.ctrl-btn-premium:hover {
    transform: translateY(-2px);
    background: var(--btn-bg);
    border-color: var(--btn-color);
    box-shadow: 0 6px 15px var(--btn-shadow);
}

.ctrl-btn-premium:hover .ctrl-label {
    color: var(--btn-color);
}

.ctrl-btn-premium:hover svg {
    stroke: var(--btn-color);
}

.ctrl-icon-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ctrl-icon-mini svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    transition: stroke 0.3s;
}

.ctrl-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

.badge-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 1px solid white;
}

.btn-emergency {
    --btn-bg: #fef2f2;
    --btn-color: #ef4444;
    --btn-shadow: rgba(239, 68, 68, 0.15);
}

.btn-add-emp {
    --btn-bg: #ecfdf5;
    --btn-color: #10b981;
    --btn-shadow: rgba(16, 185, 129, 0.15);
}

.btn-reqs {
    --btn-bg: #eef2ff;
    --btn-color: #4f46e5;
    --btn-shadow: rgba(79, 70, 229, 0.15);
}

.btn-announcement {
    --btn-bg: #f5f3ff;
    --btn-color: #8b5cf6;
    --btn-shadow: rgba(139, 92, 246, 0.15);
}

.btn-add-admin {
    --btn-bg: #f8fafc;
    --btn-color: #475569;
    --btn-shadow: rgba(71, 85, 105, 0.1);
}

@media (max-width: 768px) {
    .admin-controls-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 10px;
    }

    .ctrl-btn-premium {
        width: 100%;
        padding: 12px 15px;
        justify-content: flex-start;
    }
}


.employee-dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.detail-tabs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    width: 100%;
}

.employee-content-area {
    width: 100%;
    min-height: 50vh;
}



.detail-tab-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-tab-card .tab-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.detail-tab-card .tab-icon-box {
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    flex-shrink: 0;
}

.detail-tab-card svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
}

.detail-tab-card .tab-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1024px) {
    #view-employee-detail.container {
        max-width: 1600px;
        width: 96%;
        padding: 0 15px;
    }

    .employee-dashboard-layout {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 40px;
        align-items: start;
    }

    .detail-tabs-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
        position: sticky;
        top: 100px;
        z-index: 10;

        max-height: calc(100vh - 120px);
        overflow-y: auto;

        padding: 10px 10px 10px 5px;
        margin-top: -10px;
        margin-left: -5px;
    }

    .detail-tabs-grid::-webkit-scrollbar {
        width: 4px;
    }

    .detail-tabs-grid::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 10px;
    }

    .detail-tab-card {
        padding: 10px 15px;
        border-radius: 12px;
    }

    .detail-tab-card.active {
        transform: translateX(6px) translateY(0);
        box-shadow: -4px 8px 15px -4px var(--active-shadow);
        border-color: var(--active-color);
        z-index: 200;
    }

    .detail-tab-card.active .tab-icon-box {
        background: var(--active-color);
    }

    .detail-tab-card.active svg {
        stroke: white;
    }
}




.detail-tab-card.active {
    border-color: var(--active-color);
    background: white;
    box-shadow: 0 8px 20px -5px var(--active-shadow);
    transform: translateY(-2px);
}

.detail-tab-card.active .tab-icon-box {
    background: var(--active-color);
}

.detail-tab-card.active svg {
    stroke: white;
}

.card-blue {
    --active-color: #3b82f6;
    --active-shadow: rgba(59, 130, 246, 0.3);
}

.card-indigo {
    --active-color: #6366f1;
    --active-shadow: rgba(99, 102, 241, 0.3);
}

.card-purple {
    --active-color: #8b5cf6;
    --active-shadow: rgba(139, 92, 246, 0.3);
}

.card-slate {
    --active-color: #475569;
    --active-shadow: rgba(71, 85, 105, 0.3);
}

.card-emerald {
    --active-color: #10b981;
    --active-shadow: rgba(16, 185, 129, 0.3);
}

.card-amber {
    --active-color: #f59e0b;
    --active-shadow: rgba(245, 158, 11, 0.3);
}

.card-dark {
    --active-color: #1e293b;
    --active-shadow: rgba(30, 41, 59, 0.3);
}

.card-green {
    --active-color: #059669;
    --active-shadow: rgba(5, 150, 105, 0.3);
}

.card-orange {
    --active-color: #ea580c;
    --active-shadow: rgba(234, 88, 12, 0.3);
}

.card-pink {
    --active-color: #ec4899;
    --active-shadow: rgba(236, 72, 153, 0.3);
}

.card-cyan {
    --active-color: #06b6d4;
    --active-shadow: rgba(6, 182, 212, 0.3);
}

@media (max-width: 768px) {
    .detail-tabs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .detail-tab-card {
        padding: 10px;
        min-height: 55px;
    }

    .detail-tab-card .tab-title {
        font-size: 0.75rem;
        letter-spacing: -0.2px;
    }
}



.premium-dashboard-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.premium-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 25px;
}

.gradient-text-title {
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.premium-meta-counts {
    display: flex;
    gap: 15px;
}

.premium-count-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.premium-count-pill:hover {
    transform: translateY(-2px);
}

.premium-count-pill svg {
    width: 24px;
    height: 24px;
}

.employee-pill {
    background: linear-gradient(to right, #ffffff, #f1f5f9);
}

.employee-pill svg {
    stroke: #64748b;
}

.employee-pill .pill-number {
    color: #334155;
}

.admin-pill {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.admin-pill svg {
    stroke: #2563eb;
}

.admin-pill .pill-number {
    color: #1d4ed8;
}

.pill-data {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.pill-number {
    font-size: 1.2rem;
    font-weight: 800;
}

.pill-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.premium-search-container {
    margin-bottom: 30px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-input-wrapper:focus-within {
    background: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    width: 20px;
    height: 20px;
    stroke: #94a3b8;
    transition: stroke 0.3s;
}

.search-input-wrapper:focus-within .search-icon {
    stroke: var(--accent-color);
}

#admin-search-input {
    width: 100%;
    padding: 18px 50px 18px 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.05rem;
    color: var(--text-main);
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
}

.clear-search-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.clear-search-btn svg {
    width: 16px;
    height: 16px;
}

.premium-employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    width: 100%;
}

.premium-emp-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.premium-emp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.premium-emp-card.inactive {
    background: #f8fafc;
    opacity: 0.7;
    filter: grayscale(0.5);
}

.premium-emp-card.inactive:hover {
    opacity: 1;
    filter: grayscale(0);
}

.emp-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;

    width: 100%;
    min-width: 0;
}

.emp-avatar-wrapper {
    position: relative;
}

.emp-avatar-img {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.emp-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.dot-active {
    background: #10b981;
}

.dot-inactive {
    background: #94a3b8;
}



.emp-info-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.emp-info-main h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
    line-height: 1.2;

    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.emp-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 8px;
    margin-top: 5px;
}

.role-admin {
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #e0e7ff;
}

.role-employee {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.emp-details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.emp-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;

    width: 100%;
    min-width: 0;
}

.emp-detail-item svg {
    width: 16px;
    height: 16px;
    stroke: #94a3b8;
    flex-shrink: 0;
}

.emp-detail-item span {
    flex: 1;
    min-width: 0;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.emp-card-action {
    margin-top: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.premium-emp-card:hover .emp-card-action {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

.premium-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px dashed #cbd5e1;
    color: #475569;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 auto;
}

.premium-load-more-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.premium-load-more-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: #f8fafc;
    border-style: solid;
}

.premium-load-more-btn:hover svg {
    transform: translateY(3px);
}

.premium-menu-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: 0.2s;
}

.premium-menu-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

@media (max-width: 768px) {
    .premium-dashboard-card {
        padding: 20px;
        border-radius: 20px;
    }

    .premium-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .premium-meta-counts {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .premium-count-pill {
        justify-content: center;
        padding: 10px;
    }

    .premium-employee-grid {
        grid-template-columns: 1fr;
    }

    .pill-label {
        font-size: 0.6rem;
    }
}


.premium-pill-tabs {
    display: flex;
    align-items: center;
    -webkit-overflow-scrolling: touch;

    padding-top: 10px;
    margin-top: -10px;

    padding-bottom: 5px;
    padding-right: 5px;
}

.premium-pill-tabs::-webkit-scrollbar {
    display: none;
}

.premium-pill-tabs .inbox-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.premium-pill-tabs .inbox-tab svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.premium-pill-tabs .inbox-tab:hover:not(.active) {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-1px);
}

.premium-pill-tabs .inbox-tab.active {
    background: var(--accent-subtle);
    color: var(--accent-color);
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.premium-pill-tabs .inbox-tab.active svg {
    transform: scale(1.1);
}


@media (max-width: 600px) {
    .premium-pill-tabs {
        padding-right: 20px;
    }

    .premium-pill-tabs .inbox-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .premium-pill-tabs .inbox-tab svg {
        width: 16px;
        height: 16px;
    }
}



.urgency-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 20px;
    z-index: 500;
}


.urgency-list-container::-webkit-scrollbar {
    width: 4px;
}

.urgency-list-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.premium-urgency-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.premium-urgency-card.is-urgent {
    border-left: 4px solid #ef4444;
    background: linear-gradient(to right, #fef2f2 0%, #ffffff 10%);
}

.premium-urgency-card.is-urgent:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.15);
    border-color: #fca5a5;
}

.premium-urgency-card.is-urgent .urgency-pulse-dot {
    background: #ef4444;
    animation: pulseRed 2s infinite;
}

.premium-urgency-card.is-urgent .status-text {
    color: #b91c1c;
    font-weight: 700;
}

.premium-urgency-card.is-attended {
    border-left: 4px solid #10b981;
    background: #f8fafc;
    opacity: 0.85;
}

.premium-urgency-card.is-attended:hover {
    opacity: 1;
}

.premium-urgency-card.is-attended .urgency-pulse-dot {
    background: #10b981;
    animation: none;
}

.premium-urgency-card.is-attended .status-text {
    color: #047857;
    font-weight: 600;
}

.urgency-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.urgency-avatar-wrapper {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.urgency-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.urgency-pulse-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.urgency-emp-name {
    margin: 0 0 2px 0;
    font-size: 1.05rem;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.urgency-emp-area {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.urgency-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.urgency-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
    min-width: 0;
}

.urgency-detail-row svg {
    width: 16px;
    height: 16px;
    stroke: #94a3b8;
    flex-shrink: 0;
}

.urgency-detail-row span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.urgency-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}


.urgency-action-btn {
    margin: 0;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.urgency-action-btn:hover:not(:disabled) {
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.urgency-status-badge.resolved {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.urgency-status-badge.resolved svg {
    width: 14px;
    height: 14px;
    stroke: #059669;
}

@media (max-width: 600px) {
    .premium-urgency-card {
        padding: 15px;
    }

    .urgency-emp-name {
        max-width: 150px;
        font-size: 1rem;
    }

    .urgency-action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .urgency-status-badge.resolved {
        width: 100%;
        justify-content: center;
    }
}


#btn-tab-urg-active.active {
    background: #ffffff;
    color: #ef4444;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

#btn-tab-urg-resolved.active {
    background: #ffffff;
    color: #10b981;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

@media (max-width: 600px) {
    #urgency-modal .modal-card>div:nth-child(1) {
        padding: 20px 15px;
    }

    #urgency-modal .modal-card>div:nth-child(2) {
        padding: 15px;
        justify-content: center;
    }

    #urgency-modal .modal-card>div:nth-child(2)>div {
        width: 100%;
        display: flex;
    }

    #urgency-modal .modal-card>div:nth-child(2) button {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    #urgency-scroll-area {
        padding: 0 15px 20px 15px;
    }
}


.header-dossier-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.completion-badge {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: white;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.completion-badge:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.15);
    border-color: var(--accent-color);
}

.progress-circle-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.completion-modal-header {
    background: linear-gradient(135deg, #1e293b 0%, #4f46e5 100%);
    padding: 40px 20px 30px;
    color: white;
    text-align: center;
    position: relative;
}

.icon-progress-header {
    font-size: 3rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.pilar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 16px;
    background: #f8fafc;
    margin-bottom: 12px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.pilar-item.complete {
    background: #ecfdf5;
    border-color: #10b981;
}

.pilar-item.pending {
    background: #fff;
    border-color: #e2e8f0;
    border-style: dashed;
}

.pilar-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.pilar-info {
    flex: 1;
}

.pilar-info strong {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
}

.pilar-status {
    font-size: 0.75rem;
    font-weight: 600;
}

.status-check {
    color: #10b981;
}

.status-cross {
    color: #94a3b8;
}

.btn-fix-pilar {
    padding: 6px 12px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}




.premium-subtabs-wrapper {
    width: 100%;
    margin-bottom: 30px;
    padding: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.premium-subtabs-wrapper::-webkit-scrollbar {
    display: none;
}

.admin-tabs-segmented {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 18px;
    gap: 8px;
    min-width: max-content;
}

.subtab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 14px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.subtab-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s;
}

.subtab-icon-wrapper svg {
    width: 18px;
    height: 18px;
    stroke: #94a3b8;
}

.subtab-item.active {
    background: #ffffff;
    color: var(--accent-color);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.subtab-item.active .subtab-icon-wrapper {
    background: var(--accent-subtle);
}

.subtab-item.active .subtab-icon-wrapper svg {
    stroke: var(--accent-color);
}

.subtab-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    color: #334155;
}

.subtab-item:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(1);
}

@media (max-width: 480px) {
    .subtab-item {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}



.premium-audit-nav-wrapper {
    width: 100%;
    margin: 20px 0 30px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
}

.premium-audit-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.audit-segmented-control {
    display: flex;
    gap: 12px;
    padding: 4px;
    min-width: max-content;
}

.audit-tab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.tab-icon-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.3s;
}

.tab-icon-frame svg {
    width: 18px;
    height: 18px;
    stroke: #64748b;
}

.audit-tab-item span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
}

.tab-courses.active {
    --accent: #3b82f6;
    --bg: #eff6ff;
}

.tab-exams.active {
    --accent: #db2777;
    --bg: #fdf2f8;
}

.tab-inductions.active {
    --accent: #0891b2;
    --bg: #ecfeff;
}

.tab-badges.active {
    --accent: #eab308;
    --bg: #fefce8;
}

.audit-tab-item.active {
    background: var(--bg);
    border-color: var(--accent);
    transform: scale(1.03);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.audit-tab-item.active .tab-icon-frame {
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.audit-tab-item.active .tab-icon-frame svg {
    stroke: var(--accent);
}

.audit-tab-item.active span {
    color: var(--accent);
}

.audit-tab-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: blur(0.5px);
}

@media (max-width: 600px) {
    .audit-tab-item {
        padding: 8px 16px;
    }

    .audit-tab-item span {
        font-size: 0.8rem;
    }
}



.premium-payroll-nav-container {
    width: 100%;
    margin: 15px 0 30px;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.premium-payroll-nav-container::-webkit-scrollbar {
    display: none;
}

.payroll-segmented-control {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 20px;
    gap: 8px;
    min-width: max-content;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.payroll-tab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 15px;
    color: #64748b;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.payroll-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    transition: all 0.3s;
}

.payroll-icon-wrapper svg {
    width: 18px;
    height: 18px;
    stroke: #94a3b8;
}

.tab-pay-dash.active {
    --p-accent: #10b981;
    --p-bg: #ecfdf5;
}

.tab-pay-novelty.active {
    --p-accent: #f59e0b;
    --p-bg: #fffbeb;
}

.tab-pay-history.active {
    --p-accent: #6366f1;
    --p-bg: #eef2ff;
}

.tab-pay-config.active {
    --p-accent: #475569;
    --p-bg: #f8fafc;
}

.payroll-tab-item.active {
    background: #ffffff;
    color: var(--p-accent);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.payroll-tab-item.active .payroll-icon-wrapper {
    background: var(--p-bg);
}

.payroll-tab-item.active .payroll-icon-wrapper svg {
    stroke: var(--p-accent);
}

.payroll-tab-item:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .payroll-tab-item {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .payroll-icon-wrapper {
        width: 24px;
        height: 24px;
    }
}

.premium-lms-nav-container {
    width: 100%;
    margin: 10px 0 25px;
    padding: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.premium-lms-nav-container::-webkit-scrollbar {
    display: none;
}

.lms-segmented-control {
    display: flex;
    background: #f8fafc;
    padding: 6px;
    border-radius: 20px;
    gap: 10px;
    min-width: max-content;
    border: 1px solid #e2e8f0;
}

.lms-tab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 16px;
    color: #64748b;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lms-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.lms-icon-wrapper svg {
    width: 18px;
    height: 18px;
    stroke: #94a3b8;
}

.tab-lms-courses.active {
    --lms-color: #4f46e5;
    --lms-bg: #eef2ff;
}

.tab-lms-exams.active {
    --lms-color: #ec4899;
    --lms-bg: #fdf2f8;
}

.tab-lms-induction.active {
    --lms-color: #0d9488;
    --lms-bg: #f0fdfa;
}

.lms-tab-item.active {
    background: white;
    color: var(--lms-color);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.lms-tab-item.active .lms-icon-wrapper {
    background: var(--lms-bg);
}

.lms-tab-item.active .lms-icon-wrapper svg {
    stroke: var(--lms-color);
}

.lms-tab-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .lms-tab-item {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .lms-icon-wrapper {
        width: 28px;
        height: 28px;
    }
}


.premium-request-nav-container {
    width: 100%;
    margin: 10px 0 25px;
    padding: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.premium-request-nav-container::-webkit-scrollbar {
    display: none;
}

.request-segmented-control {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 20px;
    gap: 8px;
    min-width: max-content;
    border: 1px solid #e2e8f0;
}

.request-tab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 16px;
    color: #64748b;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.request-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
    position: relative;
}

.request-icon-wrapper svg {
    width: 18px;
    height: 18px;
    stroke: #94a3b8;
}

.tab-req-my.active {
    --req-color: #6366f1;
    --req-bg: #eef2ff;
}

.tab-req-admin.active {
    --req-color: #0ea5e9;
    --req-bg: #f0f9ff;
}

.tab-req-calendar.active {
    --req-color: #f59e0b;
    --req-bg: #fffbeb;
}

.request-tab-item.active {
    background: white;
    color: var(--req-color);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.request-tab-item.active .request-icon-wrapper {
    background: var(--req-bg);
}

.request-tab-item.active .request-icon-wrapper svg {
    stroke: var(--req-color);
}

.premium-badge-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.request-tab-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .request-tab-item {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .request-icon-wrapper {
        width: 28px;
        height: 28px;
    }
}


.ritual-nav-back {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
    margin-top: -10px;
}

.btn-back-soft {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-back-soft svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-back-soft:hover {
    color: var(--accent-color);
    background: var(--accent-subtle);
}

.btn-back-soft:hover svg {
    transform: translateX(-4px);
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-return {
    animation: slideFromLeft 0.4s ease-out forwards;
}

@media (max-width: 480px) {
    .btn-back-soft span {
        font-size: 0.75rem;
    }
}


.card-social {
    --tab-color: #ec4899;
    --tab-shadow: rgba(236, 72, 153, 0.3);
}

.celebration-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 50px;
    width: fit-content;
}

.pill-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pill-btn.active {
    background: white;
    color: #ec4899;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


.premium-grid-celebration {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.cumple-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.cumple-card:hover {
    transform: translateY(-5px);
    border-color: #fbcfe8;
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.1);
}

.cumple-card.is-birthday-today {
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
    border-color: #ec4899;
}

.cumple-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cumple-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
}

.cumple-info h4 {
    font-size: 1rem;
    margin: 0;
    color: #0f172a;
}

.cumple-info p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

.birthday-badge-premium {
    background: #fdf2f8;
    color: #db2777;
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}

.birthday-setter-group {
    display: flex;
    gap: 10px;
}

.birthday-setter-group select {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

@media (max-width: 600px) {
    .celebration-controls {
        width: 100%;
    }

    .pill-btn {
        flex: 1;
        font-size: 0.75rem;
        padding: 10px 5px;
    }
}

.cumple-body-container {
    min-height: 50px;
    display: flex;
    align-items: center;
}

.animate-flicker {
    animation: fadeInScale 0.3s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.edit-cumple-trigger {
    background: white;
    border: 1px solid #fbcfe8;
    color: #ec4899;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(236, 72, 153, 0.1);
}

/*
.edit-cumple-trigger {
    background: transparent;
    border: none;
    color: #ec4899;
    cursor: pointer;
    font-size: 0.7rem;
    text-decoration: underline;
}
*/

.edit-cumple-trigger:hover {
    background: #ec4899;
    color: white;
    transform: translateY(-1px);
}


.edit-icon-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.edit-icon-btn:hover {
    background: #fdf2f8;
    color: #ec4899;
    border-color: #fbcfe8;
    transform: rotate(9deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.1);
}

.birthday-badge-pure {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
    border: 1px solid #ffe4e6;
    border-radius: 18px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.03);
}

.cake-emoji {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.date-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.day-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: #be123c;
}

.month-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fb7185;
}

.area-tag {
    font-size: 0.7rem !important;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    margin-top: 3px !important;
}

.position-tag {
    font-size: 0.8rem !important;
    color: var(--accent-color) !important;
    font-weight: 600;
}

.is-birthday-today .birthday-badge-pure {
    background: linear-gradient(135deg, #ec4899 0%, #be123c 100%);
    border: none;
    color: white;
}

.is-birthday-today .day-num,
.is-birthday-today .month-name {
    color: white;
}

.crown-icon {
    position: absolute;
    top: -12px;
    left: -5px;
    font-size: 1.6rem;
    z-index: 10;
}

.birthday-glow {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}


.birthday-setter-premium {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    background: #f8fafc;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    flex-wrap: wrap;
}


.setter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.day-field {
    flex: 1;
    min-width: 60px;
}

.month-field {
    flex: 2;
    min-width: 120px;
}

.setter-field label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}


.setter-field select {
    width: 100% !important;
    height: 42px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: white !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    appearance: auto !important;
}


.btn-save-birthday-icon {
    width: 45px;
    height: 42px;
    flex-shrink: 0;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-save-birthday-icon:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}

.btn-save-birthday-icon:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

@media (max-width: 380px) {
    .birthday-setter-premium {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px;
    }

    .day-field {
        flex: 1 1 30%;
    }

    .month-field {
        flex: 1 1 60%;
    }

    .btn-save-birthday-icon {
        width: 100%;
        margin-top: 5px;
    }

    .setter-field select {
        font-size: 0.8rem !important;
    }
}


.header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.special-dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.event-card-premium {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    display: flex;
    overflow: hidden;
    height: 110px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.event-card-premium:hover {
    transform: scale(1.02) translateX(5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.event-date-side {
    width: 80px;
    background: linear-gradient(180deg, #4f46e5 0%, #312e81 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-date-side .day {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.event-date-side .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.event-info-side {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.event-info-side h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-tag-premium {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-delete-event {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    transition: 0.3s;
}

.btn-delete-event:hover {
    color: #ef4444;
}

.input-label-premium {
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}



.event-actions-area {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.event-card-premium:hover .event-actions-area {
    opacity: 1;
}

.action-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit-special:hover {
    background: #eff6ff;
    color: #3b82f6;
    border-color: #bfdbfe;
}

.btn-delete-special:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecdd3;
}


.calendar-premium-wrapper {
    background: white;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.calendar-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-current-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 0;
    color: #0f172a;
    text-transform: capitalize;
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.calendar-grid-premium {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.cal-day-cell {
    background: white;
    min-height: 120px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.cal-day-cell:hover {
    background: #f8fafc;
}

.cal-day-cell.is-today {
    background: #f0f9ff;
}

.cal-day-cell.is-today .day-num-bubble {
    background: var(--accent-color);
    color: white;
}

.day-num-bubble {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
}

.cal-event-pill {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pill-birthday {
    background: #fdf2f8;
    color: #db2777;
    border-left: 3px solid #ec4899;
}

.pill-special {
    background: #eff6ff;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

.pill-multiple {
    background: #f1f5f9;
    color: #475569;
    border-left: 3px solid #94a3b8;
    font-style: italic;
}

.day-modal-header {
    padding: 30px;
    color: white;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    text-align: center;
}

.day-event-item-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e2e8f0;
    animation: slideInRow 0.3s ease-out;
}

.day-event-item-card.is-special {
    border-left: 4px solid #3b82f6;
}

.day-event-item-card.is-birthday {
    border-left: 4px solid #ec4899;
}

@media (max-width: 768px) {
    .cal-day-cell {
        min-height: 80px;
        padding: 5px;
    }

    .cal-event-pill {
        font-size: 0.6rem;
        padding: 2px 4px;
    }

    .calendar-current-info h2 {
        font-size: 1.4rem;
    }
}


.calendar-nav-controls-premium {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    gap: 2px;
}

.cal-nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cal-nav-btn svg {
    width: 16px;
    height: 16px;
}

.cal-nav-btn:hover {
    background: white;
    color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cal-nav-btn:active {
    transform: scale(0.9);
}

.cal-today-btn {
    height: 36px;
    padding: 0 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.cal-today-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.cal-today-btn:active {
    transform: translateY(0);
    background: #f8fafc;
}

@media (max-width: 480px) {
    .calendar-nav-controls-premium {
        padding: 3px;
    }

    .cal-nav-btn {
        width: 32px;
        height: 32px;
    }

    .cal-today-btn {
        height: 32px;
        padding: 0 12px;
        font-size: 0.7rem;
    }
}

.bday-hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;

    padding: 15px 15px;
    border-radius: 20px;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.02),
        0 30px 60px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    min-width: 140px;
    position: relative;
    cursor: default;

    animation:
        bdayAssemble 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        bdayPulse 1s ease-in-out 1s 2;

    will-change: transform, box-shadow;
}

.bday-hero-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px rgba(79, 70, 229, 0.12);
    border-color: #e0e7ff;
}

.bday-hero-card .bday-number-giant {
    transition: filter 0.3s ease;
}

.is-birthday-today .bday-hero-card {
    animation:
        bdayAssemble 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        bdayPulse 1.5s ease-in-out 1s infinite;
}

.bday-number-giant {
    font-size: 2rem;
    font-weight: 900;
    line-height: 0.8;
    margin: 0;
    padding-right: 4px;
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 15px rgba(79, 70, 229, 0.1));
    letter-spacing: -3px;
    display: block;
}

.bday-emoji-celebration {
    font-size: 4rem;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.bday-today-celebration {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%) !important;
}

.bday-label-premium {
    margin-top: 5px;
    font-size: 0.55rem;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.4;
}

@keyframes bdayAssemble {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 600px) {
    .bday-hero-card {
        padding: 10px 2px 8px 2px;
        border-radius: 24px;
        margin-top: 2px;
        min-width: 70px;
    }

    .bday-number-giant {
        font-size: 1.7rem;
    }

    .bday-label-premium {
        margin-top: 1px;
        font-size: 0rem !important;
        margin-left: -22px;
    }

    .bday-label-premium::after {
        content: "🎂";
        font-size: 1.9rem;
    }
}

@keyframes bdayPulse {

    0%,
    100% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.08) translateY(-10px);
        box-shadow: 0 40px 90px rgba(79, 70, 229, 0.2);
        border-color: #c7d2fe;
    }
}


.btn-back-control-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 15px 10px 10px 15px;
    border: none;
    color: #94a3b8;
    font-weight: 200;
    font-size: 0.65rem;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 0px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-right: 10px;
    padding-left: 5px;
}

.btn-back-control-premium svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.btn-back-control-premium:hover {
    color: var(--accent-color);
}

.btn-back-control-premium:hover svg {
    transform: translateX(-5px);
}


@media (max-width: 600px) {
    .btn-back-control-premium {
        padding: 8px 10px;
        border-radius: 10px;
        width: 100%;
        justify-content: center;
        font-size: 0.55rem;
        margin-top: 15px;
        margin-left: 15px;
    }
}



/* 1. CONTENEDOR PRINCIPAL */
.insight-container-premium {
    display: flex;
    justify-content: center;
    margin-bottom: 2px;
    /* Aumentado de 5px a 25px para que no se pegue al nombre */
    width: 100%;
}

/* 2. LA CÁPSULA (PILL) */
.neo-pill-insight {
    display: flex;
    align-items: center;
    gap: 0px;
    background: #ffffff;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    max-width: 100%;
    width: fit-content;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;

    animation: slideUpNeo 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.neo-pill-insight:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.08);
}

/* 4. CUERPO DE TEXTO (Lógica de truncado) */
.neo-text-body {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    /* Truncado inicial en móvil */
    transition: all 0.5s ease;
}

/* 5. EL BOTÓN / DECORADOR */
.neo-decorator {
    width: 24px;
    height: 24px;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.neo-decorator svg {
    width: 12px;
    height: 12px;
}

/* 6. ESTADO EXPANDIDO (Activado por JS) */
.neo-pill-insight.is-expanded {
    border-radius: 20px;
    padding: 10px;
}

.neo-pill-insight.is-expanded .neo-text-body {
    white-space: normal;
    max-width: 100%;
    line-height: 1.4;
}

.neo-pill-insight.is-expanded .neo-decorator {
    transform: rotate(90deg);
}

/* 7. ANIMACIÓN DE ENTRADA */
@keyframes slideUpNeo {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- RESPONSIVE: MÓVIL/TABLET --- */
@media (max-width: 1024px) {
    .neo-pill-insight {
        width: 100%;
        max-width: 100%;
        padding: 0px 5px;
        margin: 0 10px;
        /* Margen para que no toque los bordes físicos del celular */
    }
}

/* --- RESPONSIVE: COMPUTADOR --- */
@media (min-width: 1025px) {
    .neo-pill-insight {
        cursor: default;
        padding: 10px 15px;
        max-width: 850px;
    }

    .neo-text-body {
        white-space: normal;
        /* Siempre visible en PC */
        max-width: none;
        overflow: visible;
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .neo-decorator {
        display: none;
        /* No se necesita expansión en PC */
    }

    .insight-container-premium {
        justify-content: flex-end;
        /* Alineación moderna a la derecha */
    }
}




/* --- LINEA DE TIEMPO MÍSTICA --- */
.oracle-modal-card {
    max-width: 900px !important;
    width: 95vw !important;
    height: 90vh !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%) !important;
    color: #f8fafc !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

.oracle-header {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
}

.oracle-timeline-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 40px 20px;
    scrollbar-width: thin;
    scrollbar-color: #4f46e5 transparent;
    scroll-behavior: smooth;
    position: relative;
}

.oracle-timeline-viewport::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #4f46e5, #ec4899, #4f46e5, transparent);
    transform: translateX(-50%);
}

.timeline-day-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    min-height: 100px;
}

.mystic-belt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-bottom: 15px;
    padding: 0 20px;
}

.celebrants-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.day-marker {
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    z-index: 10;
    background: #1e1b4b;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    flex-shrink: 0;
}

.timeline-day-node.is-today .day-marker {
    color: #fff;
    background: #4f46e5;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
    border-color: #818cf8;
}

.user-birthday-anchor {
    width: 100%;
    /* Ocupa el ancho disponible */
    max-width: 320px;
    /* Pero no crece infinito en pantallas grandes */
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    /* Asegura que el padding no "infle" la tarjeta */
}

.user-birthday-anchor div {
    flex: 1;
    /* Toma todo el espacio sobrante después de la foto */
    min-width: 0;
    /* Permite que el contenedor se encoja correctamente */
}

.user-birthday-anchor strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #ffffff;
    white-space: normal;
    /* PERMITE QUE EL NOMBRE PASE A LA SIGUIENTE LÍNEA */
    word-wrap: break-word;
    /* Rompe palabras si son excesivamente largas */
    margin-bottom: 3px;
}

.user-birthday-anchor span {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: normal;
}

.user-birthday-anchor:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: #4f46e5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.anchor-left {
    right: calc(50% + 40px);
    flex-direction: row-reverse;
    text-align: right;
}

.anchor-right {
    left: calc(50% + 40px);
    text-align: left;
}

.oracle-avatar {
    width: 45px;
    height: 45px;
    border-radius: 15px;
    /* Estilo moderno cuadradito redondeado */
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.mystic-indicator {
    flex: 1;
    font-size: 0.75rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.mystic-indicator.left-side {
    text-align: left;
    border-left: 2px solid #ec4899;
    margin-right: 20px;
}

.mystic-indicator.right-side {
    text-align: right;
    border-right: 2px solid #4f46e5;
    margin-left: 20px;
}

.mystic-label {
    display: block;
    color: #f472b6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.mystic-value {
    color: #fff;
    font-family: var(--font-heading);
    font-style: italic;
}

@media (max-width: 768px) {
    .oracle-timeline-modal h2 {
        font-size: 0.5;
    }

    .oracle-timeline-viewport::before {
        left: 30px;
    }

    .day-marker {
        width: 45px;
        margin-left: 7px;
    }

    .user-birthday-anchor {
        width: 75%;
        left: 70px !important;
        text-align: left !important;
        flex-direction: row !important;
    }

    .mystic-indicator {
        display: none;
    }

    .celebrants-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .mystic-belt {
        flex-direction: column;
        gap: 10px;
    }

    .mystic-indicator {
        width: 100%;
        text-align: center !important;
        margin: 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .user-birthday-anchor {
        width: 100%;
        /* En celular ocupan todo el ancho */
    }
}




/* --- ACUERDOS DE EVOLUCIÓN AI --- */
.commitment-modal {
    max-width: 1000px !important;
    height: 95vh !important;
    background: #0f172a !important;
    display: flex;
    flex-direction: column;
}

.commitment-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
    gap: 20px;
    background: radial-gradient(circle at top right, #1e1b4b, #0f172a);
}

.ia-dual-response {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    animation: slideUp 0.5s ease-out;
}

.commitment-text-box {
    background: white;
    color: #1e293b;
    padding: 25px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 5px solid #4f46e5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.legal-wellness-box {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    padding: 25px;
    border-radius: 16px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-area {
    padding: 20px;
    background: #1e293b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-generate-doc {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Corregir visibilidad del texto en el input de la IA */
#ia-prompt {
    background-color: #1e293b !important;
    /* Azul oscuro */
    color: #ffffff !important;
    /* Blanco puro */
    border: 1px solid #4f46e5 !important;
    /* Borde acento */
}

#ia-prompt::placeholder {
    color: #64748b !important;
    /* Gris claro para el placeholder */
}

/* Opcional: Que resalte más cuando estés escribiendo */
#ia-prompt:focus {
    background-color: #0f172a !important;
    border-color: #ec4899 !important;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.2) !important;
}

@media (max-width: 800px) {
    .ia-dual-response {
        grid-template-columns: 1fr;
    }
}


/* --- LOADER DE IA PREMUM --- */
.ai-typing-loader {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 20px 25px;
    border-radius: 18px 18px 18px 0;
    align-self: flex-start;
    max-width: 90%;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: breathing 2s infinite ease-in-out;
}

.ai-loader-text {
    font-size: 0.85rem;
    color: #93c5fd;
    font-style: italic;
    line-height: 1.4;
}

.spinner-dots {
    display: flex;
    gap: 5px;
}

.dot-bounce {
    width: 7px;
    height: 7px;
    background: #4f46e5;
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out both;
    box-shadow: 0 0 10px #4f46e5;
}

.dot-bounce:nth-child(1) {
    animation-delay: -0.32s;
}

.dot-bounce:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dotBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes breathing {

    0%,
    100% {
        border-color: rgba(79, 70, 229, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    50% {
        border-color: rgba(236, 72, 153, 0.4);
        box-shadow: 0 10px 30px rgba(79, 70, 229, 0.1);
    }
}



/* --- CORRECCIÓN DE ANCHO PARA LA BANDEJA --- */

/* Aseguramos que el contenedor de la lista de urgentes ocupe todo el ancho */
#urgent-messages-list {
    width: 100% !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

#urgent-messages-list:not(.hidden) {
    display: flex !important;
}

/* Forzamos que las tarjetas de mensaje ocupen el 100% del espacio disponible */
#urgent-list-content {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px;
}

#urgent-list-content .msg-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 10px 0 !important;
}




#ia-memo-prompt {
    color: #ffffff !important;
}

/* Hacemos que el texto de fondo (placeholder) sea gris claro legible */
#ia-memo-prompt::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Efecto luminoso al hacer foco en la caja */
#ia-memo-prompt:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important;
    background-color: #0f172a !important;
}





/* Colores alegres y diseño premium para identidad */
.card-identity {
    --tab-color: #06b6d4;
    /* Cian alegre */
    --tab-shadow: rgba(6, 182, 212, 0.3);
}

.identity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    background: rgba(255, 255, 255, 0.5);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}

.card-vision-box {
    background: white;
    padding: 25px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: all 0.3s ease;
}

.card-vision-box:hover {
    transform: scale(1.01);
    border-color: #8b5cf6;
}

.card-vision-box::before {
    content: '“';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    font-family: serif;
    color: #f1f5f9;
    line-height: 1;
}

.word-counter {
    text-align: right;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.empty-state-identity {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 30px;
    border: 2px dashed #e2e8f0;
}

.empty-state-identity h4 {
    color: #475569;
    margin-bottom: 10px;
}

/* Responsive fixes */
@media (max-width: 600px) {
    .identity-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
}




/* Selector de Países Premium */
.premium-select-wrapper {
    position: relative;
    width: 100%;
}

.select-flag {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px !important;
    background: white !important;
}

/* Flecha personalizada alegre */
.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234f46e5' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.select-flag:focus+.select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Mejoras en la cuadrícula para Responsive */
.identity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columnas en PC */
    gap: 24px;
    padding: 30px;
}

@media (max-width: 850px) {
    .identity-grid {
        grid-template-columns: 1fr;
        /* 1 columna en Tablets/Móviles */
        padding: 20px;
    }

    .input-group {
        grid-column: span 1 !important;
        /* Forzar que ocupen todo el ancho en móvil */
    }
}

/* Efecto de input premium */
.premium-input {
    border: 2px solid #f1f5f9 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.premium-input:hover {
    border-color: #e2e8f0 !important;
}

.premium-input:focus {
    border-color: #06b6d4 !important;
    /* Color alegre del módulo */
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1) !important;
}



/* Estilos para Manuales Mindbook */
.manuales-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.doc-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.doc-type-card {
    background: #f8fafc;
    border: 2px solid transparent;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doc-type-card:hover {
    background: white;
    border-color: #4f46e5;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.doc-type-card .icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.creation-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.method-card {
    padding: 30px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.method-card:hover {
    border-color: #4f46e5;
    background: #f0f9ff;
}

.method-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

@media (min-width: 1024px) {
    .ultra-wide-modal {
        max-width: 1200px !important;
        /* Ancho máximo */
        width: 95vw !important;
        height: 92vh !important;
        padding: 0 !important;
        /* Vital: quitamos el padding del modal base */
        overflow: hidden !important;
        border-radius: 24px !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
    }
}


.modal-card.ultra-wide-modal {
    max-width: 1250px !important;
    width: 96vw !important;
    height: 94vh !important;
    padding: 0 !important;
    /* Eliminamos el padding que causa el margen blanco interno */
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 28px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: #f8fafc !important;
    /* Fondo grisáceo premium de fondo */
}

#creator-step-2 {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-full-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.editor-header-sticky {
    background: #ffffff;
    padding: 25px 40px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.editor-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}


.editor-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 30px 20px;
    display: flex;
    background: #f1f5f9;
}

.zen-editor-premium {
    width: 100%;
    max-width: 850px;
    /* Ancho perfecto para no cansar la vista */
    min-height: 900px;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px;
    padding: 80px 60px !important;
    font-size: 1.25rem;
    line-height: 1.9;
    color: #1e293b;
    resize: none;
    outline: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    font-family: 'Outfit', sans-serif;
    transition: box-shadow 0.3s ease;
}

.zen-editor-premium:focus {
    box-shadow: 0 15px 50px rgba(79, 70, 229, 0.08);
}

.editor-footer-sticky {
    background: #ffffff;
    padding: 20px 40px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    /* Evita que el footer desaparezca o se encoja */
    z-index: 20;
}

.word-count-badge {
    background: #f1f5f9;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 800;
    color: #475569;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
}

.editable-title-premium {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    border: none;
    outline: none;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
    background: transparent;
}

.zen-editor:focus {
    border-color: var(--accent-color) !important;
    box-shadow: inset 0 2px 10px rgba(79, 70, 229, 0.05);
}

.save-status-indicator {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.save-status-indicator.visible {
    opacity: 1;
}

.editor-advice-banner {
    background: #eff6ff;
    border-left: 5px solid #3b82f6;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    max-width: 850px;
    width: 100%;
    color: #1e40af;
    font-size: 0.95rem;
    font-style: italic;
}

/* Manual Cards */
.manual-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
    min-height: 180px;
    /* Altura mínima para que todas las tarjetas sean iguales */
    flex-direction: column;
    justify-content: space-between;
    /* Empuja los botones al fondo */
    padding: 24px !important;
}

.manual-card-info {
    flex: 1;
    /* Toma el espacio superior */
}

.manual-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
    /* Alinea botones a la derecha */
    align-items: center;
}

.manual-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.type-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .creation-methods {
        grid-template-columns: 1fr;
    }

    .wide-modal {
        max-width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
    }
}

.icon-circle svg {
    width: 45px;
    /* Tamaño un poco más grande para que luzcan */
    height: 45px;
    display: block;
}

.doc-type-card h4 {
    margin-top: 12px;
    font-weight: 600;
    color: #1e293b;
    /* Un gris muy oscuro casi negro se ve más profesional que el negro puro */
}


.error-text {
    color: var(--error-color);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 5px;
    display: block;
}

.icon-circle-lg {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.icon-circle-lg svg {
    width: 32px;
    height: 32px;
}

.method-desc {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Animación de Sacudida */
@keyframes shakeTitle {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}



/* 1. CONTENEDOR PRINCIPAL (EL FONDO) */
.zen-reader-overlay {
    position: fixed;
    inset: 0;
    background: #f8fafc;
    z-index: 99999 !important;
    display: none;
    /* Se activa con flex desde JS */
    justify-content: center;
    animation: zenFadeIn 0.4s ease;
}

/* 2. EL CONTENEDOR DEL LECTOR */
.zen-reader-container {
    width: 100%;
    max-width: 900px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
}

/* 3. CABECERA (Sticky para que siempre esté visible al bajar) */
.zen-reader-header {
    background: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.zen-reader-title {
    font-size: 1.2rem;
    color: #0f172a;
    margin: 5px 0 0 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* 4. BOTÓN CERRAR PREMIUM */
.zen-close-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.zen-close-btn:hover {
    background: #4f46e5;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* 5. ÁREA DE LECTURA (Scrollable) */
.zen-reader-content {
    flex: 1;
    overflow-y: auto;
    padding: 60px 20px;
    background: #f1f5f9;
    /* Color gris suave para resaltar el papel */
    scroll-behavior: smooth;
}

/* 6. EFECTO "HOJA DE PAPEL" */
.document-paper {
    background: white;
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    min-height: 1000px;
    animation: zenSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* Animación de entrada */
}

.document-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.document-body {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    line-height: 2;
    /* Espaciado vital para documentos largos */
    color: #1e293b;
    text-align: justify;
}

.document-footer {
    margin-top: 80px;
    padding-bottom: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.footer-line {
    height: 1px;
    background: #f1f5f9;
    margin-bottom: 30px;
}

/* 7. DEFINICIÓN DE ANIMACIONES (Importante para que funcione) */
@keyframes zenFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zenSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 8. RESPONSIVE (MÓVIL) */
@media (max-width: 768px) {
    .document-paper {
        padding: 40px 25px;
        margin: 0;
        /* Quitar márgenes laterales en móvil */
    }

    .zen-reader-header {
        padding: 15px 20px;
    }

    .zen-close-btn .btn-text {
        display: none;
        /* Solo mostrar la X en móviles muy pequeños */
    }
}


/* Tarjeta de Borrador Local */
.draft-local-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 2px dashed #fcd34d !important;
    /* Amarillo alegre */
    position: relative;
    overflow: visible !important;
}

.draft-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #f59e0b;
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.btn-discard {
    background: #fff;
    border: 1px solid #fee2e2;
    color: #ef4444;
}

.btn-discard:hover {
    background: #fef2f2;
    transform: scale(1.1);
}

/* Animación sutil de respiración para los borradores */
@keyframes draftBreath {
    0% {
        border-color: #fcd34d;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    }

    50% {
        border-color: #fbbf24;
        box-shadow: 0 10px 25px rgba(245, 158, 11, 0.1);
    }

    100% {
        border-color: #fcd34d;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    }
}

.draft-local-card {
    animation: draftBreath 3s infinite ease-in-out;
}


.btn-download-premium {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
}

.btn-download-premium:hover {
    background: #eff6ff !important;
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    transform: translateY(-3px) rotate(-5deg);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

/* Sección de Logo Premium */
.logo-upload-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.logo-placeholder-ui {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Un fondo más suave y moderno */
    background: radial-gradient(circle at top left, #f8fafc, #e2e8f0);
    color: #4f46e5;
    /* Usamos el color de Mindbook para el icono */
    border-radius: inherit;
    position: relative;
}

.logo-placeholder-ui::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
}

.logo-preview-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.logo-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Para que el logo no se deforme */
    padding: 10px;
}

.logo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    /* Azul oscuro Mindbook */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    color: white;
}

.logo-overlay span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.logo-preview-wrapper:hover {
    transform: scale(1.05) rotate(2deg);
    /* Un toque alegre al pasar el mouse */
    border-color: #4f46e5;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
}

.logo-preview-wrapper:hover .logo-overlay {
    opacity: 1;
}

#company-logo-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Cambiar a 'contain' para que el texto no se acerque tanto a los bordes */
    padding: 8px;
    /* Dale un pequeño margen interno para que "respire" */

    /* --- VITAL PARA LA CALIDAD --- */
    image-rendering: -webkit-optimize-contrast;
    /* Para Chrome/Safari */
    image-rendering: crisp-edges;
    /* Para Firefox */
    image-rendering: high-quality;
    /* Instrucción general */

    /* Evita que se vea borroso durante transiciones */
    backface-visibility: hidden;
    transform: translateZ(0);
}

.logo-preview-wrapper:hover #company-logo-preview {
    transform: scale(1.1);
}

.logo-text h4 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Loader del Logo */
.logo-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

@media (max-width: 600px) {
    .logo-upload-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}


/* Modal Selector de Jefes (Z-Index Superior) */
#manager-selector-modal {
    z-index: 900 !important;
    /* Por encima de los modales normales (2000) */
}

.manager-card-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.manager-card-item:hover {
    border-color: var(--accent-color);
    background: var(--accent-subtle);
    transform: translateX(5px);
}

.manager-card-item.selected {
    background: var(--accent-color);
    color: white;
}

.manager-card-item.selected span {
    color: white !important;
}

.area-filter-pill {
    padding: 8px 16px;
    border-radius: 50px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: 0.3s;
}

.area-filter-pill.active {
    background: #0f172a;
    color: white;
}

.input-trigger-modal {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236366f1' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    caret-color: transparent;
    /* No mostrar cursor de texto */
}


.premium-load-more-btn-manager {
    background: #ffffff;
    border: 1px dashed var(--accent-color);
    color: var(--accent-color);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.premium-load-more-btn-manager:hover {
    background: var(--accent-subtle);
    border-style: solid;
    transform: translateY(-2px);
}

.premium-load-more-btn-manager svg {
    transition: transform 0.3s ease;
}

.premium-load-more-btn-manager:hover svg {
    transform: translateY(3px);
}


/* --- ORGANIGRAMA MINDBOOK PREMIUM --- */

.org-experience-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px;
}

.org-canvas {
    width: 100%;
    overflow-x: auto;
    padding: 50px 0;
    cursor: grab;
    scrollbar-width: none;
    margin-top: -60px;
}

/* El Árbol (Lógica de líneas con CSS) */
.org-tree-container ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
}

.org-tree-container li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 10px 0 10px;
    transition: all 0.5s;
}

/* Líneas horizontales y verticales */
.org-tree-container li::before,
.org-tree-container li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #cbd5e1;
    width: 50%;
    height: 20px;
}

.org-tree-container li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #cbd5e1;
}

.org-tree-container li:only-child::after,
.org-tree-container li:only-child::before {
    display: none;
}

.org-tree-container li:first-child::before,
.org-tree-container li:last-child::after {
    border: 0 none;
}

.org-tree-container li:last-child::before {
    border-right: 2px solid #cbd5e1;
    border-radius: 0 5px 0 0;
}

.org-tree-container li:first-child::after {
    border-radius: 5px 0 0 0;
}

.org-tree-container ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #cbd5e1;
    width: 0;
    height: 20px;
}

/* LA TARJETA (Nivel de diseño espectacular) */
.org-card-premium {
    display: inline-block;
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    width: 220px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(20px);
    animation: nodeSpawn 0.6s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes nodeSpawn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.org-card-premium:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* Los Arcos de Color (Como en la imagen) */
.node-arc-decor {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 45px;
    border: 4px solid transparent;
    border-top-color: #6366f1;
    /* Color por defecto */
    border-radius: 100px 100px 0 0;
}

.is-boss .node-arc-decor {
    border-top-color: #ec4899;
    /* Líderes en rosa/morado */
}

.node-photo-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    position: relative;
    z-index: 1;
}

.node-photo-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.node-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.node-position {
    font-size: 0.75rem;
    color: #4f46e5;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.node-details {
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.node-details p {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.node-details svg {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
}


/* ÁREA DE CARGA MÁS */
.org-load-more-area {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    padding-bottom: 50px;
}

.cta-gaming-load {
    background: #ffffff;
    border: 2px solid #6366f1;
    color: #6366f1;
    padding: 14px 30px;
    border-radius: 18px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-gaming-load::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.6s;
}

.cta-gaming-load:hover {
    transform: translateY(-5px) scale(1.02);
    background: #6366f1;
    color: white;
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.cta-gaming-load:hover svg {
    transform: translateY(3px);
}

.cta-gaming-load:active {
    transform: scale(0.95);
}

/* Badge de conteo */
.org-count-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid #e2e8f0;
}

/* Animación de entrada de nuevos nodos al árbol */
.org-node-item {
    animation: nodeBuildIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes nodeBuildIn {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


/* --- ESTADO INACTIVO EN ORGANIGRAMA --- */
.org-card-premium.is-inactive {
    border-style: dashed;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.org-card-premium.is-inactive .node-photo-wrapper {
    filter: grayscale(1) contrast(0.8);
    opacity: 0.7;
}

.org-card-premium.is-inactive .node-arc-decor {
    border-top-color: #94a3b8 !important;
}

.inactive-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.8);
    color: white;
    font-size: 0.5rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 10;
}

/* --- MODAL DE REASIGNACIÓN (Z-INDEX SUPERIOR) --- */
.hierarchy-modal {
    max-width: 700px !important;
    height: 85vh !important;
    display: flex;
    flex-direction: column;
}

.subordinate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    transition: 0.3s;
}

.subordinate-item:hover {
    background: #f8fafc;
}

.subordinate-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #6366f1;
    cursor: pointer;
}

.management-section-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 20px;
}


/* --- BADGE DE CONFIDENCIALIDAD --- */
.confidencialidad-badge {
    margin-left: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 30px 7px 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-radius: 20px;
    border: 1px solid #e0f2fe;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.05);
}

.confidencialidad-badge:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #7dd3fc;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.12);
}

.badge-icon-box {
    width: 40px;
    height: 40px;
    background: #0ea5e9;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.badge-text-box {
    display: flex;
    flex-direction: column;
}

.badge-top {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
}

.badge-bottom {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

/* --- MODAL VAULT --- */
.vault-modal {
    width: 100%;
    max-width: 550px !important;
    background: #ffffff !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 28px !important;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Evita que el modal sea más alto que la pantalla (menos el padding) */
    max-height: calc(100vh - 40px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.vault-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 40px 30px;
    color: white;
    text-align: center;
}

.vault-icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.vault-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.vault-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    max-width: 280px;
    margin: 0 auto;
}

.vault-body {
    padding: 30px;
    overflow-y: auto;
    /* Si el texto es muy largo, solo esta parte scrollea */
    flex: 1;
    /* Toma el espacio disponible entre header y footer */
}

.vault-body::-webkit-scrollbar {
    width: 6px;
}

.vault-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.vault-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}


.anonymity-guarantee {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 6px 12px;
    border-radius: 50px;
}

.premium-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

#confidencial-text {
    width: 100%;
    min-height: 180px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    transition: all 0.3s ease;
}

#confidencial-text:focus {
    background: white;
    border-color: #0ea5e9;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.08);
}

.textarea-footer {
    text-align: right;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.vault-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    background: #ffffff;
    /* Asegura que el fondo tape el contenido al bajar */
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
    /* Evita que el footer se achique */
}

.vault-btn {
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0ea5e9 !important;
}

/* Responsive */
@media (max-width: 600px) {
    .confidencialidad-badge {
        width: 70%;
        margin: 5px 10px 0px 10px;
        padding: 10px 15px 7px 2px;
    }

    .company-logo-btn {
        border: none !important;
        margin-left: 10px !important;
        margin-right: 15px;
        margin-top: 5px;
        width: 60px !important;
        height: 60px !important;
    }

    .vault-icon-circle {
        display: none;
    }

    .modal-center {
        padding: 10px;
        /* Menos margen en móviles */
        align-items: flex-start;
        /* Empieza desde arriba para que el scroll sea natural */
    }

    .vault-modal {
        max-height: calc(100vh - 20px);
        border-radius: 24px !important;
    }

    .vault-header {
        padding: 30px 20px 20px;
    }

    .vault-title {
        font-size: 1.5rem;
    }

    .vault-body {
        padding: 20px;
    }

    .anonymity-guarantee {
        gap: 2px;
    }

    .guarantee-item {
        gap: 4px;
        font-size: 0.65rem;
        font-weight: 500;
        padding: 6px 10px;
    }

    .vault-footer {
        flex-direction: column-reverse;
        /* El botón de enviar queda arriba del de cancelar */
        padding: 15px 20px 25px;
    }

    .vault-btn {
        height: 55px;
        /* Botón más grande y táctil en móviles */
    }
}


#permisionButton {
    padding: 15px 25px;
    background: white;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}



/* --- NAVEGACIÓN SEGMENTADA PREMIUM --- */
.premium-segmented-nav {
    display: flex !important;
    flex-direction: row !important;
    /* Fuerza fila horizontal siempre */
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 12px 20px !important;
    overflow-x: auto !important;
    /* Permite scroll horizontal en móviles */
    scrollbar-width: none;
    /* Oculta scrollbar en Firefox */
    -ms-overflow-style: none;
    border-bottom: 1px solid #f1f5f9 !important;
}

.premium-segmented-nav::-webkit-scrollbar {
    display: none;
    /* Oculta scrollbar en Chrome/Safari */
}

/* Estilo Individual de cada Item */
.lms-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    /* Evita que el texto se rompa en dos líneas */
    flex-shrink: 0;
    /* Evita que los botones se aplasten */
    position: relative;
}

.lms-nav-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    transition: color 0.3s;
}

/* Marco del Icono */
.nav-icon-frame {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    color: #94a3b8;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.nav-icon-frame svg {
    width: 18px;
    height: 18px;
}

/* Estado Activo */
.lms-nav-item.active {
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.08);
    transform: translateY(-1px);
}

.lms-nav-item.active .nav-icon-frame {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.lms-nav-item.active span {
    color: #0f172a;
}

/* Badge de Notificación Mini */
.badge-mini {
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Micro-interacción al hacer click */
.lms-nav-item:active {
    transform: scale(0.96);
}

/* Responsive: Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .premium-segmented-nav {
        padding: 10px 15px !important;
        gap: 6px;
    }

    .lms-nav-item {
        padding: 3px 14px;
        gap: 8px;
    }

    .nav-icon-frame svg {
        width: 14px;
        height: 14px;
    }

    .lms-nav-item span {
        font-size: 0.65rem;
    }
}


/* --- NUEVA PALETA DE COLORES ARMÓNICA --- */

/* Indigo: Calma para aprender */
.tab-courses {
    --theme-color: #6366f1;
    --theme-bg: #eef2ff;
}

/* Morado/Violeta: Enfoque y Sabiduría (Exámenes) */
.tab-exams {
    --theme-color: #8b5cf6;
    --theme-bg: #f5f3ff;
}

/* Cyan/Teal: Frescura y Bienvenida (Inducción) */
.tab-inductions {
    --theme-color: #06b6d4;
    --theme-bg: #ecfeff;
}

/* Ámbar: Éxito y Logro (Insignias) */
.tab-badges {
    --theme-color: #f59e0b;
    --theme-bg: #fffbeb;
}

/* Estilo Base del Item (Botón) */
.lms-nav-item {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* El Icono en estado Reposo (Sutil) */
.lms-nav-item .nav-icon-frame {
    background: var(--theme-bg) !important;
    color: var(--theme-color) !important;
    opacity: 0.7;
    filter: grayscale(0.5);
    /* Iconos un poco apagados si no están activos */
}

/* Efecto Hover: El color empieza a brillar */
.lms-nav-item:hover {
    border-color: var(--theme-color) !important;
    transform: translateY(-2px);
}

.lms-nav-item:hover .nav-icon-frame {
    opacity: 1;
    filter: grayscale(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- ESTADO ACTIVO: EXPLOSIÓN DE COLOR --- */
.lms-nav-item.active {
    border-color: var(--theme-color) !important;
    background: var(--theme-bg) !important;
    /* Fondo suave del color del tema */
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.06) !important;
}

.lms-nav-item.active .nav-icon-frame {
    opacity: 1;
    filter: grayscale(0);
    /* Degradado vibrante para el icono activo */
    background: linear-gradient(135deg, var(--theme-color) 0%, #000000 150%) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px -3px var(--theme-color);
}

.lms-nav-item.active span {
    color: var(--theme-color) !important;
    font-weight: 800;
}

/* Ajuste del Badge para que combine con el color del item */
.lms-nav-item.active .badge-mini {
    background: var(--theme-color);
    box-shadow: 0 0 10px var(--theme-color);
}


.lms-modal-premium-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 40px 30px;
    color: white;
    position: relative;
    overflow: hidden;
    /* Importante para que el patrón no se salga */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Patrón geométrico sutil de fondo */
.header-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.header-main-content {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 2;
}

/* El Icono "Glow" */
.header-visual-icon {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    /* Azul brillante */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(56, 189, 248, 0.2);
    flex-shrink: 0;
}

.header-visual-icon svg {
    width: 35px;
    height: 35px;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.header-text-group h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 50px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    /* Punto verde de "conectado/activo" */
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.header-status-pill p {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin: 0;
}

/* Botón Cerrar Estilo Glassmorphism */
.lms-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.lms-modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.lms-modal-close svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 600px) {
    .lms-modal-premium-header {
        padding: 10px 5px 10px;
        border-radius: 10px 10px 0px 0px;
    }

    .header-visual-icon {
        display: none;
    }

    .header-visual-icon svg {
        display: none;
    }

    .header-text-group h2 {
        font-size: 1.3rem;
        margin-left: 15px;
    }

    .header-status-pill {
        margin-left: 10px;
    }

    .header-status-pill p {
        font-size: 0.6rem;
    }

    .header-bg-pattern {
        width: 150px;
    }
}





/* Botón PWA Premium */
.floating-pwa-btn {
    position: fixed;
    right: 30px;
    bottom: 200px;
    /* Ubicado arriba de los otros botones */
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    z-index: 1999;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse-pwa 3s infinite;
}

.floating-pwa-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.5);
}

.floating-pwa-btn svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes pulse-pwa {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(79, 70, 229, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

@media (max-width: 600px) {
    .floating-pwa-btn {
        bottom: 90px;
        /* Ajuste para el mobile action bar */
        right: 20px;
        width: 50px;
        height: 50px;
    }
}



/* Animación de denegación Premium */
.shake-denied {
    animation: shake-animation 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake-animation {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.toast-error-legal {
    border-left: 5px solid #ef4444 !important;
    background: rgba(255, 245, 245, 0.95) !important;
}




/* --- PANEL LATERAL (DRAWER) RECONSTRUIDO --- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 11000;
    /* Por encima de todo */
    display: flex;
    justify-content: flex-end;
    visibility: hidden;
    pointer-events: none;
    /* No bloquea clics cuando está oculto */
}

.drawer-overlay.hidden {
    display: none !important;
    pointer-events: none !important;
}

.drawer-overlay.active {
    visibility: visible;
    pointer-events: auto;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.drawer-overlay.active .drawer-backdrop {
    opacity: 1;
}

.drawer-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    /* Ancho profesional */
    height: 100%;
    background: #ffffff;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Evita que el logo se salga */
}

.drawer-overlay.active .drawer-content {
    transform: translateX(0);
}

/* Header del Panel */
.drawer-header {
    padding: 60px 30px 30px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    position: relative;
}

/* Contenedor del Logo dentro del Drawer (Para que no explote en tamaño) */
.drawer-logo-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: white;
    padding: 15px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.drawer-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.2;
}

.drawer-tagline {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Lista de Navegación */
.drawer-nav {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.drawer-item:hover {
    transform: translateX(-5px);
    border-color: var(--brand-color-1) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.drawer-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--brand-color-1), 0.1);
    color: rgb(var(--brand-color-1));
    flex-shrink: 0;
}

.drawer-item span {
    font-weight: 700;
    color: #334155;
    font-size: 0.95rem;
}

.drawer-section-title {
    padding: 20px 30px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1.5px;
}

.drawer-manuals-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 25px 40px;
}

/* Botón Cerrar X */
.drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.2s;
}

.drawer-close:hover {
    background: #f1f5f9;
    transform: rotate(90deg);
}

/* Ajustes Responsive */
@media (max-width: 600px) {
    .drawer-content {
        max-width: 100%;
    }

    .drawer-header {
        padding: 40px 20px 20px;
    }

    .drawer-logo-container {
        width: 90px;
        height: 90px;
    }
}

/* El Contenedor del Botón en el Header */
.header-actions-container {
    display: flex;
    align-items: center;
    gap: 12px;

}

.company-logo-btn {
    width: 55px;
    height: 55px;
    margin-left: 30px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    /* Eliminamos el borde */
    background: white !important;
    /* Eliminamos el fondo blanco */
    padding: 0px !important;
    /* Quitamos el espacio interno */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Eliminamos la sombra inicial */
    overflow: hidden !important;
    /* Permitimos que efectos de hover sobresalgan */
}

.company-logo-btn:hover {
    transform: translateY(-3px);
    border-color: var(--brand-color-1) !important;
    /* El borde cambia al color de la empresa */
    box-shadow: 0 8px 20px rgba(var(--brand-color-1), 0.15);
}

.company-logo-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Mantiene la proporción del logo */
}

.company-logo-btn:hover img {
    /* Añadimos una sombra de luz basada en el logo al hacer hover */
    filter: drop-shadow(0 5px 15px rgba(var(--brand-color-1), 0.3));
}

.company-logo-btn:active {
    transform: scale(0.95);
    /* Efecto de pulsación al hacer click */
}


/* Estilos Misión y Visión */
.quote-card {
    padding: 30px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    margin-bottom: 20px;
    position: relative;
    text-align: left;
}

.quote-icon-svg {
    margin-bottom: 15px;
    color: var(--brand-color-1);
}

.quote-title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: #94a3b8;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #1e293b;
    margin-top: 10px;
}

/* --- ORGANIGRAMA MODO LECTURA (PREMIUM) --- */

/* Contenedor específico que definimos en lateral.js */
.org-readonly-container .org-card-premium {
    /* 1. Deshabilitar Clics: Esto anula el onclick de la imagen y la tarjeta */
    pointer-events: none !important;

    /* 2. Feedback Visual: Cambiamos el cursor de "mano" a flecha normal */
    cursor: default !important;

    /* 3. Estética: Podemos quitar la sombra de hover para que se sienta estático */
    transition: transform 0.3s ease;
}

/* Opcional: Mantener el efecto de escala sutil pero sin que parezca un botón */
.org-readonly-container .org-card-premium:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Asegurar que el canvas (el área de scroll) SIGA siendo navegable */
.org-readonly-container .org-canvas {
    pointer-events: auto !important;
    cursor: grab;
    /* Permite arrastrar el organigrama para verlo todo */
    padding-top: 20px;
}

/* Ocultar elementos de administración si se colaran por error */
.org-readonly-container .org-controls,
.org-readonly-container .nav-btn-mini,
.org-readonly-container .org-load-more-area {
    display: none !important;
}


/* Identidad Visual para Contabilidad */
.card-accounting {
    --tab-color: #10b981;
    /* Esmeralda Alegre */
    --tab-shadow: rgba(16, 185, 129, 0.3);
}

.accounting-gradient-text {
    background: linear-gradient(135deg, #059669 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtab-item.active-accounting {
    background: #ffffff !important;
    color: #059669 !important;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.2) !important;
    border: 1px solid rgba(16, 185, 129, 0.1) !important;
}


/* Navegación Terciaria - Píldoras Financieras */
.financial-pills-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 5px;
    margin-bottom: 25px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.financial-pills-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.pill-financial {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.pill-financial:hover {
    background: #ffffff;
    border-color: #10b981;
    color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.pill-financial.active-pill {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.25) !important;
}

.pill-financial svg {
    transition: transform 0.3s ease;
}

.pill-financial:active {
    transform: scale(0.95);
}



/* Navegación Terciaria - Tarjetas Operativas */
.operational-cards-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 5px;
    margin-bottom: 25px;
    scrollbar-width: none;
}

.operational-cards-container::-webkit-scrollbar {
    display: none;
}

.card-op-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 12px 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.card-op-item:hover {
    border-color: #3b82f6;
    color: #2563eb;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.1);
}

.card-op-item .icon-wrapper-op {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.card-op-item span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Estado Activo Operativo */
.card-op-item.active-op {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.3) !important;
}

.card-op-item.active-op .icon-wrapper-op {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}


/* Navegación Terciaria - Segmentos de Control */
.control-segments-container {
    display: flex;
    flex-wrap: wrap;
    /* Para que sea responsive */
    gap: 12px;
    margin-bottom: 25px;
}

.segment-control-item {
    display: flex;
    flex-direction: row;
    /* Icono al lado del texto */
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    padding: 8px 16px;
    /* Más pequeñas y estilizadas */
    border-radius: 14px;
    /* Bordes un poco más suaves para el tamaño */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    min-width: fit-content;
}

.segment-control-item:hover {
    transform: translateY(-3px);
    border-color: #f59e0b;
    background: #fffbeb;
}

.segment-control-item .icon-box-ctrl {
    width: 32px;
    /* Tamaño reducido */
    height: 32px;
    /* Tamaño reducido */
    background: #f8fafc;
    color: #64748b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Que no se deforme el icono */
    transition: all 0.3s ease;
}

.segment-control-item span {
    font-size: 0.85rem;
    /* Texto más profesional y pequeño */
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    /* Evita que el texto salte de línea */
}

/* Estado Activo Control */
.segment-control-item.active-ctrl {
    background: #fff7ed !important;
    /* Ámbar ultra claro */
    border-color: #f59e0b !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15) !important;
}

.segment-control-item.active-ctrl .icon-box-ctrl {
    background: #f59e0b !important;
    /* Icono resalta en naranja */
    color: #ffffff !important;
}

.segment-control-item.active-ctrl span {
    color: #92400e !important;
    /* Texto en café-naranja oscuro para lectura */
}

@media (max-width: 600px) {
    .control-segments-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .segment-control-item {
        padding: 10px;
    }
}







/* =========================================================
   CÍRCULO DE LA CONFIANZA & REGISTRO DIARIO (VERSIÓN PREMIUM)
   ========================================================= */

/* Contenedor del Botón en el Header */
.trust-circle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    /* Separación con el siguiente botón */
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.trust-circle-wrapper:hover {
    transform: scale(1.1);
}

/* Animación del anillo rotatorio exterior (Más suave) */
.trust-ring {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, transparent 40%, #0ea5e9 50%, #6366f1 70%, #a855f7 100%);
    animation: spinTrust 2.5s linear infinite;
    z-index: 1;
    opacity: 0.8;
}

/* El núcleo del botón (Glow limpio, sin sombras sucias) */
.trust-core {
    position: relative;
    width: 44px;
    height: 44px;
    background: #0f172a;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.2), 0 0 15px rgba(59, 130, 246, 0.4);
    border: 2px solid #1e293b;
    transition: all 0.4s ease;
}

.trust-core svg {
    width: 20px;
    height: 20px;
    stroke: #38bdf8;
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.6));
    transition: all 0.4s ease;
}

/* Efecto Hover Magnético */
.trust-circle-wrapper:hover .trust-ring {
    opacity: 1;
    filter: blur(2px);
    /* El blur hace que parezca luz real */
}

.trust-circle-wrapper:hover .trust-core {
    background: #1e1b4b;
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.4), 0 0 30px rgba(139, 92, 246, 0.7);
    border-color: #4c1d95;
}

.trust-circle-wrapper:hover .trust-core svg {
    stroke: #c4b5fd;
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(196, 181, 253, 0.9));
}

@keyframes spinTrust {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Grid de Acciones del Modal (Mejorado para no colapsar textos) */
.action-grid-daily {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.daily-action-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 18px 10px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569;
}

.daily-action-btn svg {
    width: 26px;
    height: 26px;
    stroke: #64748b;
    transition: all 0.3s;
}

.daily-action-btn span {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
}

.daily-action-btn:hover:not(:disabled) {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.daily-action-btn:hover:not(:disabled) svg {
    stroke: #3b82f6;
}

.daily-action-btn.selected {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2), inset 0 0 0 1px #3b82f6;
}

.daily-action-btn.selected svg {
    stroke: #2563eb;
    transform: scale(1.15);
}

.daily-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

/* Banner de Timer en Vivo (Glassmorphism Corregido) */
.live-timer-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border: 1px solid #334155;
    border-radius: 24px;
    padding: 35px 25px;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: trustScaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.live-timer-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    animation: trustPulseGlow 4s infinite ease-in-out;
}

.timer-digits {
    font-family: monospace;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    /* Color sólido en vez de gradiente para evitar bugs de renderizado */
    text-shadow: 0 4px 15px rgba(99, 102, 241, 0.6);
    margin: 15px 0;
    line-height: 1;
}

.btn-stop-timer {
    background: linear-gradient(135deg, #ef4444 0%, #be123c 100%);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.35);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-stop-timer:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(225, 29, 72, 0.5);
}

.btn-stop-timer svg {
    width: 20px;
    height: 20px;
}

/* Botones "Justo Ahora" (Corregido alineación Flex) */
.btn-just-now {
    background: #f0fdfa;
    color: #0d9488;
    border: 1px solid #ccfbf1;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    /* Altura fija para no colapsar */
}

.btn-just-now:hover {
    background: #14b8a6;
    color: white;
    border-color: #0d9488;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

/* 🌟 ANIMACIONES FALTANTES AÑADIDAS 🌟 */
@keyframes trustScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes trustPulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Ajustes Responsive Exactos */
@media (max-width: 600px) {
    .trust-circle-wrapper {
        margin-left: 0;
        margin-right: 10px;
    }

    .trust-ring {
        width: 48px;
        height: 48px;
    }

    .trust-core {
        width: 40px;
        height: 40px;
    }

    .trust-core svg {
        width: 18px;
        height: 18px;
    }

    .timer-digits {
        font-size: 3rem;
    }

    .action-grid-daily {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .daily-action-btn {
        padding: 12px 8px;
    }

    .btn-just-now {
        height: 42px;
        font-size: 0.75rem;
        padding: 0 10px;
    }
}