/* ==================== TASK PREVIEWS ==================== */
.task-preview-list {
    margin: 0 0 12px 30px;
    background: #f8fdff;
    border: 2px solid #e0f7fa;
    border-radius: 8px;
    padding: 8px;
    width: calc(100% - 30px);
    box-sizing: border-box;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease;
    display: none;
}

.task-preview-list.active {
    display: block;
}

.task-preview-list.expanded {
    max-height: 400px;
}

.task-preview-item {
    background: white;
    border-left: 3px solid #00BCD4;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    transition: all 0.2s ease;
}

.task-preview-item:hover {
    background: #f0f9ff;
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(0, 188, 212, 0.15);
}

.task-preview-content {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 100%;
}

.task-preview-time {
    font-size: 10px;
    color: #666;
    margin-left: 4px;
    flex-shrink: 0;
}

.task-datetime {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-datetime::before {
    content: "🕒";
    font-size: 10px;
}

.task-meeting-type {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 500;
}

.task-meeting-type.presencial {
    background: #e3f2fd;
    color: #1976d2;
}

.task-meeting-type.virtual {
    background: #f3e5f5;
    color: #7b1fa2;
}

.task-pending-badge {
    display: inline-block;
    background: #ff9800;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 12px;
    margin-bottom: 4px;
}

.task-preview-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.task-preview-btn {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: all 0.2s ease;
}

.task-preview-btn:hover {
    background: #f0f0f0;
}

.task-preview-btn.copy:hover {
    color: #1976d2;
    background: #e3f2fd;
}

.task-preview-btn.download:hover {
    color: #2e7d32;
    background: #e8f5e8;
}

.task-preview-btn.delete:hover {
    color: #d32f2f;
    background: #ffebee;
}

.task-preview-empty {
    text-align: center;
    padding: 12px;
    color: #999;
    font-size: 12px;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px dashed #ddd;
}

.task-preview-more {
    text-align: center;
    padding: 6px;
    color: #00BCD4;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    background: #e0f7fa;
    border-radius: 4px;
    margin-top: 4px;
}

.task-preview-more:hover {
    background: #b2ebf2;
    color: #0097A7;
}

/* Estilo para elementos de navegación con tareas */
.nav-item.has-tasks {
    color: #006064;
    font-weight: 600;
}

.nav-item.has-tasks .material-symbols-outlined:first-child {
    color: #00BCD4;
}

.nav-item.has-tasks .task-count {
    color: #DA291C;
    font-weight: 700;
}

.task-count {
    font-size: 13px;
    color: var(--azul);
    font-weight: 600;
}

/* Flecha de toggle */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.nav-item.has-tasks .nav-toggle {
    color: #00BCD4;
}

/* Sección de Gestión de tareas */
.title-text {
    color: #006064 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #e0f7fa;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* ==================== ACTION MENU ==================== */
.action-menu {
    position: fixed;
    bottom: 80px;
    left: 16px;
    right: 16px;
    background: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: var(--radius-lg);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    padding: 12px;
    display: none;
    z-index: 50;
    max-width: 400px;
}

.action-menu.active {
    display: block;
    animation: slideUp 0.3s ease;
}

.action-item {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: var(--radius-md);
    font-size: var(--font-md);
    color: var(--texto-claro);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.action-item:hover {
    background: var(--gris-fondo);
}

.action-item.selected {
    background: #E0F7FA;
    color: #006064;
    font-weight: 500;
    border-color: var(--azul);
}

.action-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mode-chip-icon-letter {
    width: 24px;
    height: 24px;
    background: #DA291C;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

/* ==================== CHIP DE MODO ACTIVO ==================== */
.mode-chip-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    animation: slideDown 0.3s ease-out;
}

.mode-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E0F7FA;
    color: #00ACC1;
    padding: 8px 14px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 172, 193, 0.15);
    border: 1px solid #B2EBF2;
    transition: all 0.3s ease;
}

.mode-chip:hover {
    background: #B2EBF2;
    box-shadow: 0 3px 8px rgba(0, 172, 193, 0.25);
}

.mode-chip-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mode-chip-icon {
    width: 18px;
    height: 18px;
    color: #00ACC1;
    flex-shrink: 0;
}

#modeChipText {
    color: #00ACC1;
    font-weight: 500;
    user-select: none;
}

.mode-chip-close {
    background: transparent;
    border: none;
    color: #00ACC1;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    padding: 0;
    margin-left: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mode-chip-close:hover {
    background: rgba(0, 172, 193, 0.15);
    color: #00838F;
    transform: scale(1.1);
}

/* ==================== USAGE METER ==================== */
.usage-meter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 10px;
}

.usage-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #ffc107, #dc3545);
    border-radius: 10px;
    transition: width 0.3s ease, background 0.3s ease;
}

.usage-fill.warning {
    background: #ffc107 !important;
}

.usage-fill.danger {
    background: #dc3545 !important;
}

.usage-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    white-space: nowrap;
    min-width: 50px;
}

/* ==================== TOASTS Y ALERTAS ==================== */
.usage-warning-toast {
    position: fixed;
    top: 70px;
    right: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    opacity: 1;
    transition: opacity 0.3s ease;
    max-width: 300px;
    font-size: 13px;
    color: #856404;
}

.auto-web-toast {
    position: fixed;
    bottom: 90px;
    right: 24px;
    background: #ffffff;
    border-left: 4px solid #00BCD4;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

.auto-web-toast.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}
