/* ESTILOS PARA EL ADMIN */
.giwp-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.giwp-admin-card {
    background: white;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.giwp-admin-card h3 {
    margin: 0 0 10px 0;
    color: #23282d;
}

.giwp-admin-card .value {
    font-size: 32px;
    font-weight: 600;
    color: #0073aa;
}

/* ESTILOS PARA EL SHORTCODE */

/* Reset y base */
#giwp-app * { 
    box-sizing: border-box; 
}

#giwp-app { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    color: #1a1a1a;
    line-height: 1.6;
}

/* Layout principal */
.giwp-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.giwp-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
}

.giwp-header h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
    font-weight: 700;
}

/* Navegaci��n */
.giwp-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.giwp-nav-item {
    padding: 12px 24px;
    background: #f8fafc;  /* CAMBIADO: Fondo gris claro visible */
    border: 2px solid #e2e8f0;  /* CAMBIADO: Borde gris claro para definici��n */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;  /* AGREGADO: Color de texto definido */
}

.giwp-nav-item:hover {
    background: #e2e8f0;  /* CAMBIADO: Gris m��s oscuro en hover */
    border-color: #667eea;
    transform: translateY(-1px);  /* AGREGADO: Ligero lift en hover */
}

.giwp-nav-item.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Secciones */
.giwp-section {
    display: none;
    animation: fadeIn 0.3s;
}

.giwp-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.giwp-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.giwp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Grid de estad��sticas */
.giwp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.giwp-stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.giwp-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.giwp-stat-value {
    font-size: 42px;
    font-weight: 700;
    color: #667eea;
    margin: 10px 0;
}

/* Formularios */
.giwp-form-group {
    margin-bottom: 20px;
}

.giwp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.giwp-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.giwp-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Botones */
.giwp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.giwp-btn-primary {
    background: #667eea;
    color: white;
}

.giwp-btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 🆕 v5.0: Botón info para Ver Timer */
.giwp-btn-info {
    background: #3b82f6;
    color: white;
}

.giwp-btn-info:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.giwp-btn-success {
    background: #10b981;
    color: white;
}

.giwp-btn-success:hover {
    background: #059669;
}

.giwp-btn-danger {
    background: #ef4444;
    color: white;
}

.giwp-btn-danger:hover {
    background: #dc2626;
}

/* �9�5 ESTILOS PARA SELECCI�0�7N MASIVA */
.giwp-bulk-controls {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.giwp-bulk-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.giwp-bulk-actions {
    display: flex;
    gap: 10px;
}

.giwp-bulk-actions .giwp-btn {
    padding: 8px 16px;
    font-size: 14px;
}

.giwp-bulk-actions .giwp-btn-danger {
    background: rgba(239, 68, 68, 0.9);
}

.giwp-bulk-actions .giwp-btn-danger:hover {
    background: rgba(220, 38, 38, 1);
}

.giwp-bulk-selection {
    display: flex;
    align-items: center;
    gap: 8px;
}

.giwp-bulk-selection input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Grid de tareas */
.giwp-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.giwp-task-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
}

.giwp-task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.giwp-task-card.in-progress {
    border: 2px solid #667eea;
    /* animation removida - solo borde azul como indicador visual */
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

/* �9�5 CHECKBOX DE SELECCI�0�7N EN TARJETAS */
.giwp-task-checkbox {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: white;
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.giwp-task-checkbox:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.giwp-task-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.giwp-task-checkbox input[type="checkbox"]:checked {
    accent-color: #667eea;
}

/* Ajustar el header de tarea cuando hay checkbox */
.giwp-task-card .giwp-task-header {
    background: linear-gradient(135deg, #f5f7fa, #e9ecef);
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

/* A�0�9adir padding extra cuando hay checkbox */
.giwp-task-card:has(.giwp-task-checkbox) .giwp-task-header {
    padding-left: 55px;
}

.giwp-task-body {
    padding: 20px;
}

.giwp-task-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
}

.giwp-task-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.giwp-task-status.in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.giwp-task-status.completed {
    background: #d1fae5;
    color: #065f46;
}

/* Checklist */
.giwp-checklist-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f9fafb;
    margin: 5px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.giwp-checklist-item:hover {
    background: #f3f4f6;
}

.giwp-checklist-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.giwp-checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

/* Timer */
.giwp-timer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    z-index: 1000;
    display: none;
}

.giwp-timer.active {
    display: block;
}

.giwp-timer-display {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    margin: 20px 0;
    font-variant-numeric: tabular-nums;
}

.giwp-timer-display.overtime {
    color: #ef4444;
}

/* Calendario */
.giwp-calendar-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* AI Chat */
.giwp-ai-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.giwp-ai-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.giwp-ai-button:hover {
    transform: scale(1.1);
}

.giwp-ai-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    max-height: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
}

.giwp-ai-window.active {
    display: flex;
}

.giwp-ai-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.giwp-ai-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
}

.giwp-ai-message {
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
}

.giwp-ai-message.user {
    background: #667eea;
    color: white;
    margin-left: auto;
}

.giwp-ai-message.assistant {
    background: #f3f4f6;
    color: #1a1a1a;
}

/* �9�5 ESTILOS PARA DISTRIBUCI�0�7N EDITABLE */
.giwp-distribution-preview {
    background: #f9fafb;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
    border: 2px solid #e5e7eb;
}

.giwp-day-group {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.giwp-day-header {
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

/* �9�5 TAREAS EDITABLES */
.giwp-editable-task {
    background: #f8fafc;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    position: relative;
}

.giwp-editable-task:hover {
    border-color: #667eea;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.1);
}

.giwp-editable-task .giwp-form-control {
    margin-bottom: 0;
    font-size: 14px;
    padding: 8px 12px;
}

.giwp-editable-task label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.giwp-editable-task .task-title {
    font-weight: 600;
}

.giwp-editable-task .task-time {
    text-align: center;
}

.giwp-editable-task .task-priority {
    font-size: 14px;
}

.giwp-editable-task .task-description {
    resize: vertical;
    min-height: 60px;
}

.giwp-editable-task .task-checklist {
    resize: vertical;
    min-height: 80px;
    font-family: monospace;
    font-size: 13px;
}


/* Loading */
.giwp-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.giwp-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensajes */
.giwp-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.giwp-message.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.giwp-message.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.giwp-message.warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* Manual selector */
.giwp-manual-selector {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* �9�5 MEJORAS DE RESPONSIVIDAD PARA NUEVAS FUNCIONES */
@media (max-width: 768px) {
    .giwp-tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .giwp-timer {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    
    .giwp-ai-window {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
    }
    
    .giwp-nav {
        flex-direction: column;
    }
    
    /* �9�5 Controles masivos responsivos */
    .giwp-bulk-controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .giwp-bulk-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* �9�5 Distribuci��n editable responsiva */
    .giwp-editable-task > div:first-child {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .giwp-editable-task .task-time {
        text-align: left;
    }
    
    /* Checkbox en m��vil */
    .giwp-task-checkbox {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 15px;
        display: inline-block;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }
    
    .giwp-task-card .giwp-task-header {
        padding: 20px;
    }
    
    /* En m��vil, no usar :has() que puede no estar soportado */
    .giwp-task-card:has(.giwp-task-checkbox) .giwp-task-header {
        padding-left: 20px;
    }
}

/* �9�5 ESTILOS NUEVOS - AGREGAR AL FINAL DEL ARCHIVO */

/* Timer mejorado con estados */
.giwp-timer-display.overtime {
    color: #ef4444 !important;
    animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Bot��n de edici��n en tarjetas */
.giwp-task-card .giwp-btn {
    transition: all 0.2s;
}

.giwp-task-card .giwp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Modal de edici��n mejorado */
.swal2-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.swal2-popup .giwp-form-group {
    margin-bottom: 15px;
    text-align: left;
}

.swal2-popup .giwp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.swal2-popup .giwp-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.swal2-popup .giwp-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Timer inline en tarjetas */
.giwp-task-card p[id^="inline-timer-"] {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Indicador visual de tarea con timer activo */
.giwp-task-card.in-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% auto;
    animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Ajustes para botones de edici��n en diferentes estados */
.giwp-task-card[data-status="completed"] .giwp-btn {
    opacity: 0.8;
}

.giwp-task-card[data-status="completed"] .giwp-btn:hover {
    opacity: 1;
}

/* Tooltip para tiempo estimado vs real */
.giwp-time-comparison {
    display: inline-block;
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.giwp-time-comparison.faster {
    background: #d1fae5;
    color: #065f46;
}

.giwp-time-comparison.slower {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsividad para modal de edici��n */
@media (max-width: 768px) {
    .swal2-popup {
        width: 95% !important;
        max-width: 500px !important;
    }
    
    .swal2-popup form > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }
}

/* =================================================================== */
/* ESTILOS PARA SUMA DE HORAS DIARIAS EN EL CALENDARIO - PROBLEMA 1  */
/* =================================================================== */

.fc-daygrid-day-top {
    position: relative !important;
}

.giwp-day-total-badge {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #eef2ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Estilos para comentarios mejorados */
.giwp-comment {
    border-bottom: 1px solid #e5e7eb; 
    padding: 8px 0; 
    margin-bottom: 8px;
}

.giwp-comment p { 
    margin: 0 0 5px; 
}

.giwp-comment small { 
    color: #6b7280; 
    font-size: 11px; 
}

/* Enlaces clicables en comentarios */
.giwp-comment a {
    color: #3b82f6;
    text-decoration: underline;
}

.giwp-comment a:hover {
    color: #1d4ed8;
}

/* CR�0�1TICO: Posicionamiento para tri��ngulos y badges de proyectos */
.giwp-task-card {
    position: relative !important;
    overflow: visible !important;
}

.fc-event {
    position: relative !important;
    overflow: visible !important;
}

.fc-daygrid-event {
    position: relative !important;
    overflow: visible !important;
}

/* =================================================================== */
/* CORRECCIONES VISUALES CRÍTICAS - MISIÓN I Y II                     */
/* =================================================================== */

/* CORRECCIÓN 1: Sistema de z-index consistente */
.giwp-task-card {
    position: relative !important;
    overflow: visible !important;
}

/* 🔧 CORRECCIÓN DEFINITIVA: Z-index y pointer-events */

/* Triángulo de proyecto - no debe bloquear clicks */
.giwp-project-indicator {
    position: absolute;
    top: 0;
    left: 40px;
    z-index: 1;
    pointer-events: none !important;
}

.giwp-project-triangle {
    pointer-events: none !important;
}

.giwp-project-name {
    pointer-events: none !important;
}

/* Badge de aprobación - no debe bloquear clicks */
.giwp-approval-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    z-index: 3;
    background: white;
    border-radius: 50%;
    padding: 2px;
    line-height: 1;
    pointer-events: none !important;
}

/* Checkbox - SÍ debe recibir clicks */
.giwp-task-checkbox {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: white;
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: auto !important;
}

/* Body y comentarios - deben ser clicables */
.giwp-task-body {
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
}

.giwp-task-header {
    position: relative;
    z-index: 4;
    pointer-events: auto !important;
    cursor: pointer;
}

/* Todos los elementos decorativos no deben bloquear */
.giwp-task-card::before,
.giwp-task-card::after,
.giwp-editable-task::before,
.giwp-editable-task::after {
    pointer-events: none !important;
}

/* Estado de tarea - ajustar posición para no solapar */
.giwp-task-status {
    position: absolute;
    top: 10px;
    right: 30px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* CORRECCIÓN 2: Opacidad de suma de horas en calendario */
.giwp-day-total-badge {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #eef2ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    opacity: 1 !important; /* Forzar opacidad */
}

/* Forzar visibilidad en días de otros meses */
.fc-day-other .giwp-day-total-badge {
    opacity: 1 !important;
    background-color: #e0e7ff; /* Color ligeramente diferente para distinguir */
}

/* CORRECCIÓN 3: Header de tarjeta con flexbox para evitar overlap */
.giwp-task-header {
    background: linear-gradient(135deg, #f5f7fa, #e9ecef);
    padding: 20px;
    padding-left: 60px; /* Espacio para checkbox y proyecto */
    padding-right: 140px; /* Espacio para estado y aprobación */
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.giwp-task-header:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

/* CORRECCIÓN 4: Vista acordeón */
.giwp-task-accordion .giwp-task-body {
    transition: all 0.3s ease;
    overflow: hidden;
}

.giwp-task-accordion.expanded .giwp-task-header::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.giwp-task-accordion:not(.expanded) .giwp-task-header::after {
    content: '▶';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

/* Resumen de tarea para vista plegada */
.giwp-task-summary {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 14px;
    color: #6b7280;
}

.giwp-summary-item {
    display: inline-block;
}

/* Indicador de comentarios */
.giwp-comment-indicator {
    background: #fbbf24;
    color: #78350f;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* CORRECCIÓN 5: Alineación de filtros */
.giwp-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
}

.giwp-filter-group label {
    margin: 0;
    font-weight: 600;
    color: #374151;
}

/* Eliminar el label redundante de Proyecto */
#filter-project-container > label {
    display: none !important;
}

/* CORRECCIÓN 6: Calendario - Indicadores de proyecto y aprobación */
.fc-event {
    position: relative !important;
    overflow: visible !important;
}

.fc-daygrid-event {
    position: relative !important;
    overflow: visible !important;
}

/* Triángulo de proyecto en calendario */
.fc-event .giwp-project-triangle-cal {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 12px solid;
    border-right: 12px solid transparent;
    z-index: 1;
    pointer-events: none;
}

/* Check de aprobación en calendario */
.fc-event .giwp-approval-check-cal {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 11px;
    background: white;
    border-radius: 50%;
    padding: 1px;
    z-index: 2;
    line-height: 1;
}

/* MEJORAS ADICIONALES */

/* Botones con confirmación - estilo especial */
.giwp-btn-confirm {
    position: relative;
}

.giwp-btn-confirm::before {
    content: '⚠️';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s;
}

.giwp-btn-confirm:hover::before {
    opacity: 1;
}

/* Modal de clonación */
.giwp-clone-modal .user-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
}

.giwp-clone-modal .user-item {
    display: flex;
    align-items: center;
    padding: 8px;
    margin: 4px 0;
    background: #f9fafb;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.giwp-clone-modal .user-item:hover {
    background: #f3f4f6;
}

.giwp-clone-modal .user-item input[type="checkbox"] {
    margin-right: 10px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .giwp-task-header {
        padding-left: 50px;
        padding-right: 80px;
    }

    .giwp-project-indicator {
        left: 5px;
    }

    .giwp-task-summary {
        flex-direction: column;
        gap: 5px;
    }

    .giwp-summary-item {
        display: block;
    }
}

/* Animaciones suaves */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.giwp-task-card {
    animation: slideIn 0.3s ease-out;
}

/* Fix para filtros en calendario */
.giwp-calendar-filters {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.giwp-calendar-filters .giwp-filter-group {
    margin: 0;
}

/* =================================================================== */
/* MISIÓN I - SISTEMA DE PROYECTOS Y CORRECCIONES VISUALES            */
/* =================================================================== */

/* Reset para tarjetas - Eliminar cualquier banda roja flotante */
.giwp-task-card .giwp-project-pill[style*="position: absolute"] {
    display: none !important; /* Eliminar banda roja flotante */
}

/* Gutter anti-colisión definitivo */
.giwp-task-header {
    padding: 15px 15px 15px 55px; /* Espacio sagrado para checkbox */
    position: relative;
    cursor: pointer;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.giwp-task-header:hover {
    background: linear-gradient(135deg, #f1f3f5 0%, #f8f9fa 100%);
}

/* Checkbox en zona segura con z-index alto */
.giwp-task-checkbox {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 20; /* Z-index alto para estar encima de todo */
    background: white;
    border-radius: 4px;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.giwp-task-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

/* Triángulo del proyecto - Visible y no bloqueante */
.giwp-project-triangle {
    position: absolute;
    top: 0;
    left: 55px; /* Después del espacio del checkbox */
    width: 0;
    height: 0;
    border-top: 20px solid; /* Color viene del style inline */
    border-right: 20px solid transparent;
    z-index: 1;
    pointer-events: none; /* No bloquea clics */
}

/* Chip del proyecto - En el flujo del header */
.giwp-project-chip {
    display: inline-block;
    padding: 2px 8px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    margin-right: 8px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none; /* No interfiere con clics */
}

/* Fila del título con chip y título alineados */
.giwp-task-title-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* Título con límite de líneas y ellipsis */
.giwp-task-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Íconos junto al título */
.giwp-icon-comment,
.giwp-icon-approved {
    font-size: 14px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Grid de datos perfectamente alineado */
.giwp-task-summary {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 5px 10px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
}

/* Media query para pantallas estrechas */
@media (max-width: 480px) {
    .giwp-task-summary {
        grid-template-columns: 90px 1fr;
        font-size: 12px;
    }
}

.giwp-meta-label {
    font-weight: 600;
    color: #6b7280;
    text-align: left;
}

.giwp-meta-value {
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Colores para prioridad */
.giwp-priority-low { color: #10b981; }
.giwp-priority-medium { color: #f59e0b; }
.giwp-priority-high { color: #ef4444; }
.giwp-priority-urgent {
    color: #dc2626;
    font-weight: 600;
}

/* Estado de la tarea - Posición ajustada */
.giwp-task-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Body de la tarea */
.giwp-task-body {
    padding: 20px;
    background: #ffffff;
}

/* Descripción de la tarea */
.giwp-task-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Animación de acordeón */
.giwp-task-accordion .giwp-task-body {
    transition: all 0.3s ease;
}

.giwp-task-accordion.expanded .giwp-task-header::after {
    content: '▼';
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 12px;
}

.giwp-task-accordion:not(.expanded) .giwp-task-header::after {
    content: '▶';
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 12px;
}

/* Asegurar que elementos decorativos no bloqueen clics */
.giwp-project-indicator,
.giwp-approval-badge {
    pointer-events: none;
}

/* Limpiar cualquier resto de posicionamiento absoluto del proyecto */
.giwp-task-card [class*="project"][style*="position: absolute"][style*="right"] {
    display: none !important;
}

/* ========================================
   SISTEMA DE NOTIFICACIONES DE COMENTARIOS
   ======================================== */

/* Indicador de comentarios con badge de no leídos */
.giwp-comment-indicator {
    display: inline-flex;
    align-items: center;
    background-color: #f3f4f6;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 14px;
    line-height: 1;
    margin-left: 8px;
    position: relative;
}

/* Badge de contador de no leídos */
.giwp-unread-count {
    background: #f59e0b;
    color: #111827;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: 4px;
    display: inline-block;
    min-width: 18px;
    text-align: center;
}

/* Badge en calendario */
.giwp-comment-badge-cal {
    position: absolute;
    top: 2px;
    right: 18px;
    background: #f59e0b;
    color: #111827;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 999px;
    z-index: 3;
    pointer-events: none;
    min-width: 16px;
    text-align: center;
}

/* Botón tipo link */
.giwp-btn-link {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
}

.giwp-btn-link:hover {
    color: #5a67d8;
}

/* Sección de comentarios */
.giwp-comments-wrapper {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.giwp-comments-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
    margin-top: 10px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .giwp-comment-indicator {
        font-size: 12px;
        padding: 2px 6px;
    }

    .giwp-unread-count {
        font-size: 10px;
        padding: 1px 4px;
    }

    .giwp-comment-badge-cal {
        font-size: 9px;
        padding: 1px 3px;
    }
}

/* =================================================================== */
/* SISTEMA MAGISTRAL DE NOTIFICACIONES DE COMENTARIOS v2.0            */
/* =================================================================== */

/* Chip de comentarios en tarjetas con fondo visible */
.giwp-comment-indicator {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background-color: #eef2ff; /* Azul muy claro para contraste */
    border: 1px solid #c7d2fe; /* Borde sutil para definición */
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 13px;
    line-height: 1;
    color: #111827;
    margin-left: 8px;
    transition: all 0.2s;
}

/* Estado con comentarios no leídos */
.giwp-comment-indicator.has-unread {
    background-color: #fef3c7; /* Ámbar claro para destacar */
    border-color: #fde68a;
}

/* Contador de no leídos entre paréntesis */
.giwp-unread-paren {
    font-weight: 700;
    font-size: 12px;
    color: #92400e; /* Ámbar oscuro */
}

/* Badge en calendario - posición no intrusiva */
.fc-event-main {
    position: relative;
    padding-bottom: 4px; /* Espacio para el badge */
}

.giwp-comment-badge-cal {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background-color: #fef3c7;
    color: #92400e;
    border-radius: 8px;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none; /* No interfiere con clicks */
}

/* Botón de marcar como no leído */
.giwp-btn-unread {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 13px;
    transition: color 0.2s;
    margin-left: 10px;
}

.giwp-btn-unread:hover {
    color: #5a67d8;
}

/* ========================================
   SISTEMA DE COMENTARIOS - ALTO CONTRASTE
   ======================================== */

/* Chip base (gris claro, siempre visible) */
.giwp-comment-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #e5e7eb;
    color: #111827;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 13px;
    margin-left: 8px;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Estado CRÍTICO: Hay no leídos (oscuro, alto contraste) */
.giwp-comment-indicator.has-unread {
    background-color: #111827;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* El contador (n) entre paréntesis, resalta sobre el fondo oscuro */
.giwp-unread-paren {
    font-weight: 700;
    color: #fbbf24;
}

/* Badge en Calendario (pequeño, oscuro, en la esquina inferior) */
.fc-event-main {
    position: relative;
    padding-bottom: 3px;
}

.giwp-comment-badge-cal {
    position: absolute;
    bottom: 1px;
    right: 2px;
    background-color: #111827;
    color: #ffffff;
    border-radius: 8px;
    padding: 1px 5px;
    font-size: 10px;
    z-index: 5;
    font-weight: 600;
}

/* ================================================= */
/* SISTEMA MAGISTRAL DE NOTIFICACIONES v3.0 (ÚNICO)  */
/* ================================================= */

/* Indicador de comentarios en las tarjetas de tareas */
.giwp-comment-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #374151;
    color: #ffffff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 13px;
    line-height: 1;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.giwp-comment-indicator:hover {
    background-color: #1f2937;
    transform: scale(1.05);
}

/* Estado con comentarios no leídos */
.giwp-comment-indicator.has-unread {
    background-color: #111827;
    animation: pulse-unread 2s infinite;
}

@keyframes pulse-unread {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Contador de no leídos */
.giwp-unread-paren {
    color: #fbbf24;
    font-weight: 700;
    margin-left: 2px;
}

/* Badge en el calendario */
.giwp-comment-badge-cal {
    position: absolute;
    bottom: 2px;
    right: 2px;
    z-index: 10;
    background-color: #111827;
    color: #fbbf24;
    border-radius: 8px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

/* Estilos para eventos de calendario con comentarios no leídos */
.fc-event:has(.giwp-comment-badge-cal) {
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
}

/* Botones de marcar leído/no leído */
.giwp-btn-link {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}

.giwp-btn-link:hover {
    opacity: 0.8;
}

/* Asegurar visibilidad en todos los temas */
.giwp-task-card .giwp-comment-indicator,
.fc-event .giwp-comment-badge-cal {
    display: inline-flex !important;
    visibility: visible !important;
}

/* =================================================================== */
/* SISTEMA DE COMENTARIOS EN GRID - v2.1.0 DEFINITIVO                 */
/* =================================================================== */

/* Indicador en su nueva ubicación en el grid */
.giwp-task-summary .giwp-comment-indicator {
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.giwp-task-summary .giwp-comment-indicator:hover {
    transform: scale(1.05);
}

/* Mantener el estilo oscuro cuando hay no leídos */
.giwp-task-summary .giwp-comment-indicator.has-unread {
    background-color: #1f2937;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* El contador amarillo resalta sobre fondo oscuro */
.giwp-task-summary .giwp-unread-paren {
    color: #fbbf24;
    font-weight: 700;
    margin-left: 2px;
}

/* Texto cuando no hay comentarios */
.giwp-meta-value-none {
    color: #9ca3af;
    font-style: italic;
    font-size: 13px;
}

/* Limpiar cualquier indicador residual en el título */
.giwp-task-title .giwp-comment-indicator {
    display: none !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .giwp-task-summary .giwp-comment-indicator {
        font-size: 11px;
        padding: 1px 6px;
    }

    .giwp-task-summary .giwp-unread-paren {
        font-size: 10px;
    }
}
/* ============================================================================ */
/* MISIÓN TIEMPO INVERTIDO - BADGE CALENDARIO (Est / Real)                     */
/* ============================================================================ */

/* Ajuste del badge para que quepan ambos valores */
.giwp-day-total-badge {
    font-size: 10px;
    padding: 3px 5px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* Tiempo estimado (azul original) */
.giwp-day-total-badge .giwp-hours-assigned {
    color: #4338ca;
    font-weight: 600;
}

/* Tiempo real invertido (rojo oscuro para destacar) */
.giwp-day-total-badge .giwp-hours-real {
    color: #b91c1c;
    font-weight: 700;
}

/* ========================================
   📸 MODAL DE IMÁGENES ESTILO WHATSAPP
   ======================================== */

.giwp-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.giwp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.giwp-modal-content {
    position: relative;
    z-index: 10001;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giwp-modal-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.giwp-modal-close:hover {
    opacity: 1;
}

#giwp-modal-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

#giwp-modal-image.zoomed {
    cursor: zoom-out;
    transform: scale(1.5);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .giwp-modal-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
    }

    #giwp-modal-image {
        max-width: 95vw;
        max-height: 80vh;
    }
}

/* ============================================= */
/* 🆕 v5.0: SISTEMA MULTI-TIMER                 */
/* ============================================= */

/* Contenedor de timers */
#giwp-timers-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    align-items: flex-end;
}

#giwp-timers-container > * {
    pointer-events: auto;
}

/* Timer multi-instancia */
.giwp-timer-multi {
    position: relative;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    width: 280px;
    max-width: calc(100vw - 40px);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    z-index: calc(9999 - var(--timer-index, 0));
}

/* Header del timer */
.giwp-timer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
}

.giwp-timer-title {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    line-height: 1.3;
    /* Máximo 3 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.giwp-timer-mini-time {
    display: none;
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

.giwp-timer-minimize-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #9ca3af;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

.giwp-timer-minimize-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Body del timer */
.giwp-timer-body {
    text-align: center;
}

.giwp-timer-multi .giwp-timer-display {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
}

.giwp-timer-multi .giwp-timer-display.warning {
    color: #f59e0b;
}

.giwp-timer-multi .giwp-timer-display.overtime {
    color: #ef4444;
}

.giwp-timer-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.giwp-timer-actions .giwp-btn {
    padding: 8px 16px;
    font-size: 12px;
}

/* Estado minimizado */
.giwp-timer-multi.minimized {
    width: auto;
    min-width: 180px;
    max-width: 280px;
    padding: 10px 15px;
}

.giwp-timer-multi.minimized .giwp-timer-title {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: unset;
    display: inline-block;
}

.giwp-timer-multi.minimized .giwp-timer-body {
    display: none;
}

.giwp-timer-multi.minimized .giwp-timer-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.giwp-timer-multi.minimized .giwp-timer-mini-time {
    display: inline;
}

/* Highlight animation para "Ver Timer" */
.giwp-timer-multi.highlight {
    animation: timer-highlight 2s ease;
}

@keyframes timer-highlight {
    0%, 100% { box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5), 0 8px 25px rgba(0,0,0,0.15); }
}

/* Estado pausado - visual diferenciado */
.giwp-timer-multi.paused {
    border-color: #f59e0b;
    background: linear-gradient(to bottom, #fffbeb, white);
}

.giwp-timer-multi.paused .giwp-timer-display {
    color: #92400e;
}

/* Botón "Ver Timer" para tareas en progreso */
.giwp-btn-view-timer {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.giwp-btn-view-timer:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive multi-timer */
@media (max-width: 768px) {
    .giwp-timer-multi {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: calc(10px + (var(--timer-index, 0) * 155px));
    }

    .giwp-timer-multi .giwp-timer-display {
        font-size: 24px;
    }

    .giwp-timer-title {
        font-size: 12px;
    }

    .giwp-timer-actions .giwp-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}
