/* Pomodoro Kanban Board - Estilos principales */
:root {
    --pkb-primary: #2196F3;
    --pkb-primary-dark: #1976D2;
    --pkb-success: #4CAF50;
    --pkb-danger: #f44336;
    --pkb-warning: #FF9800;
    --pkb-bg: #f5f7fa;
    --pkb-card-bg: #ffffff;
    --pkb-border: #e1e4e8;
    --pkb-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --pkb-shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --pkb-text: #24292e;
    --pkb-text-light: #6a737d;
}

.pkb-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    background: var(--pkb-bg);
    border-radius: 12px;
    box-sizing: border-box;
}

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

.pkb-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--pkb-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pkb-title::before {
    content: "📋";
    font-size: 32px;
}

.pkb-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pkb-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pkb-btn-primary {
    background: var(--pkb-primary);
    color: white;
}

.pkb-btn-primary:hover {
    background: var(--pkb-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--pkb-shadow);
}

.pkb-btn-success {
    background: var(--pkb-success);
    color: white;
}

.pkb-btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.pkb-btn-danger {
    background: var(--pkb-danger);
    color: white;
}

.pkb-btn-danger:hover {
    background: #da190b;
}

.pkb-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.pkb-column {
    flex: 0 0 280px;
    min-width: 280px;
    background: var(--pkb-card-bg);
    border-radius: 8px;
    box-shadow: var(--pkb-shadow);
    display: flex;
    flex-direction: column;
    max-height: 700px;
}

.pkb-column-header {
    padding: 16px;
    background: linear-gradient(135deg, var(--pkb-primary) 0%, var(--pkb-primary-dark) 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    border-radius: 8px 8px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pkb-column-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 100px;
}

.pkb-column-content::-webkit-scrollbar {
    width: 8px;
}

.pkb-column-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.pkb-column-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.pkb-column-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.pkb-task {
    background: white;
    border: 2px solid var(--pkb-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
}

.pkb-task:hover {
    box-shadow: var(--pkb-shadow-hover);
    transform: translateY(-2px);
    border-color: var(--pkb-primary);
}

.pkb-task.sortable-ghost {
    opacity: 0.4;
    background: #f0f0f0;
}

.pkb-task.sortable-drag {
    opacity: 1;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transform: rotate(5deg);
}

.pkb-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.pkb-task-time {
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: var(--pkb-primary);
    padding: 4px 8px;
    border-radius: 4px;
}

.pkb-task-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pkb-task:hover .pkb-task-actions {
    opacity: 1;
}

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

.pkb-task-action:hover {
    background: #f0f0f0;
}

.pkb-task-action.delete:hover {
    background: #ffebee;
    color: var(--pkb-danger);
}

.pkb-task-content {
    font-size: 14px;
    color: var(--pkb-text);
    line-height: 1.5;
    word-wrap: break-word;
}

.pkb-task-content.pkb-team {
    background: linear-gradient(135deg, #FFE082 0%, #FFD54F 100%);
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    color: #F57F17;
    margin-top: 8px;
}

.pkb-task-content.pkb-gym {
    background: linear-gradient(135deg, #FF8A65 0%, #FF7043 100%);
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    color: #BF360C;
    margin-top: 8px;
}

.pkb-add-task {
    padding: 12px;
    border-top: 2px solid var(--pkb-border);
}

.pkb-add-task-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 2px dashed var(--pkb-border);
    border-radius: 6px;
    color: var(--pkb-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pkb-add-task-btn:hover {
    background: var(--pkb-primary);
    color: white;
    border-color: var(--pkb-primary);
}

/* Modal para añadir/editar tareas */
.pkb-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.pkb-modal.active {
    display: flex;
}

.pkb-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

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

.pkb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pkb-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pkb-text);
    margin: 0;
}

.pkb-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: var(--pkb-text-light);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.pkb-modal-close:hover {
    background: #f0f0f0;
    color: var(--pkb-text);
}

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

.pkb-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--pkb-text);
}

.pkb-form-input,
.pkb-form-textarea,
.pkb-form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--pkb-border);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pkb-form-input:focus,
.pkb-form-textarea:focus,
.pkb-form-select:focus {
    outline: none;
    border-color: var(--pkb-primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.pkb-form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.pkb-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Notificaciones */
.pkb-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--pkb-shadow-hover);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.pkb-notification.success {
    border-left: 4px solid var(--pkb-success);
}

.pkb-notification.error {
    border-left: 4px solid var(--pkb-danger);
}

.pkb-notification-icon {
    font-size: 24px;
}

.pkb-notification-message {
    flex: 1;
    color: var(--pkb-text);
    font-weight: 500;
}

/* Loading spinner */
.pkb-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .pkb-wrapper {
        padding: 10px;
    }
    
    .pkb-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pkb-title {
        font-size: 22px;
    }
    
    .pkb-controls {
        justify-content: stretch;
    }
    
    .pkb-btn {
        flex: 1;
        justify-content: center;
    }
    
    .pkb-board {
        gap: 12px;
    }
    
    .pkb-column {
        flex: 0 0 240px;
        min-width: 240px;
    }
    
    .pkb-modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Drag and drop visual feedback */
.pkb-column-content.drag-over {
    background: rgba(33, 150, 243, 0.1);
    border: 2px dashed var(--pkb-primary);
    border-radius: 6px;
}

/* Estados de las tareas */
.pkb-task.status-todo {
    border-left: 4px solid #9E9E9E;
}

.pkb-task.status-progress {
    border-left: 4px solid var(--pkb-warning);
}

.pkb-task.status-done {
    border-left: 4px solid var(--pkb-success);
}

.pkb-task.status-blocked {
    border-left: 4px solid var(--pkb-danger);
}

/* Prioridades */
.pkb-task-priority {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pkb-task-priority.high {
    background: var(--pkb-danger);
}

.pkb-task-priority.medium {
    background: var(--pkb-warning);
}

.pkb-task-priority.low {
    background: var(--pkb-success);
}

/* Efectos adicionales */
.pkb-task-fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Empty state */
.pkb-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--pkb-text-light);
}

.pkb-empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.pkb-empty-state-text {
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   CALENDARIO Y NAVEGACIÓN
   ======================================== */

.pkb-calendar-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--pkb-shadow);
}

.pkb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.pkb-current-date {
    font-size: 24px;
    font-weight: 700;
    color: var(--pkb-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pkb-current-date .date-icon {
    font-size: 28px;
}

.pkb-date-info {
    display: flex;
    flex-direction: column;
}

.pkb-date-day {
    font-size: 28px;
    font-weight: 700;
    color: var(--pkb-primary);
}

.pkb-date-full {
    font-size: 14px;
    color: var(--pkb-text-light);
}

.pkb-calendar-nav {
    display: flex;
    gap: 10px;
}

.pkb-nav-btn {
    padding: 10px 16px;
    background: var(--pkb-bg);
    border: 2px solid var(--pkb-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--pkb-text);
}

.pkb-nav-btn:hover {
    background: var(--pkb-primary);
    color: white;
    border-color: var(--pkb-primary);
    transform: translateY(-2px);
}

.pkb-calendar-mini {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.pkb-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--pkb-bg);
    color: var(--pkb-text);
}

.pkb-calendar-day.header {
    background: transparent;
    color: var(--pkb-text-light);
    font-size: 11px;
    font-weight: 700;
    cursor: default;
}

.pkb-calendar-day:not(.header):hover {
    background: var(--pkb-primary);
    color: white;
    transform: scale(1.1);
}

.pkb-calendar-day.today {
    background: var(--pkb-primary);
    color: white;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
}

.pkb-calendar-day.has-tasks {
    position: relative;
}

.pkb-calendar-day.has-tasks::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--pkb-warning);
}

.pkb-calendar-day.today.has-tasks::after {
    background: white;
}

/* ========================================
   ESTADOS DE TAREAS
   ======================================== */

.pkb-task-status-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.pkb-task-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pkb-task-status:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pkb-task-status.status-todo {
    background: #e0e0e0;
    color: #616161;
}

.pkb-task-status.status-in_progress {
    background: #fff3cd;
    color: #856404;
}

.pkb-task-status.status-done {
    background: #d4edda;
    color: #155724;
}

.pkb-task-status.status-blocked {
    background: #f8d7da;
    color: #721c24;
}

.pkb-status-icon {
    font-size: 12px;
}

/* Status Dropdown */
.pkb-status-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    padding: 8px;
    z-index: 1000;
    display: none;
    min-width: 180px;
    margin-top: 5px;
}

.pkb-status-dropdown.active {
    display: block;
}

.pkb-status-option {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

.pkb-status-option:hover {
    background: var(--pkb-bg);
}

.pkb-status-option.selected {
    background: var(--pkb-primary);
    color: white;
}

/* ========================================
   ESTADÍSTICAS Y PROGRESO
   ======================================== */

.pkb-statistics {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--pkb-shadow);
}

.pkb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.pkb-stat-card {
    background: var(--pkb-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pkb-stat-card:hover {
    border-color: var(--pkb-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pkb-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--pkb-primary);
    display: block;
    margin-bottom: 5px;
}

.pkb-stat-label {
    font-size: 12px;
    color: var(--pkb-text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pkb-stat-card.todo .pkb-stat-value {
    color: #757575;
}

.pkb-stat-card.in-progress .pkb-stat-value {
    color: var(--pkb-warning);
}

.pkb-stat-card.done .pkb-stat-value {
    color: var(--pkb-success);
}

.pkb-stat-card.blocked .pkb-stat-value {
    color: var(--pkb-danger);
}

/* Progress Bar */
.pkb-progress-section {
    margin-top: 25px;
}

.pkb-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.pkb-progress-bar {
    height: 24px;
    background: var(--pkb-bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.pkb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pkb-success) 0%, #66bb6a 100%);
    border-radius: 12px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 40px;
}

/* ========================================
   FILTROS Y VISTAS
   ======================================== */

.pkb-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pkb-filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--pkb-border);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 600;
    color: var(--pkb-text);
}

.pkb-filter-btn:hover {
    border-color: var(--pkb-primary);
    color: var(--pkb-primary);
}

.pkb-filter-btn.active {
    background: var(--pkb-primary);
    color: white;
    border-color: var(--pkb-primary);
}

.pkb-view-toggle {
    display: flex;
    background: var(--pkb-bg);
    border-radius: 8px;
    padding: 4px;
}

.pkb-view-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 600;
    color: var(--pkb-text-light);
}

.pkb-view-btn.active {
    background: white;
    color: var(--pkb-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ========================================
   RESPONSIVE UPDATES
   ======================================== */

@media (max-width: 768px) {
    .pkb-calendar-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pkb-current-date {
        justify-content: center;
    }
    
    .pkb-calendar-nav {
        justify-content: center;
    }
    
    .pkb-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pkb-filters {
        justify-content: center;
    }
}

/* ========================================
   VISTA SEMANAL V2.0
   ======================================== */

.pkb-week-navigation {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--pkb-shadow);
}

.pkb-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.pkb-week-info {
    text-align: center;
    flex: 1;
}

.pkb-week-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pkb-text);
    margin: 0 0 5px 0;
}

.pkb-week-subtitle {
    font-size: 14px;
    color: var(--pkb-text-light);
    margin: 0;
}

.pkb-week-dates {
    color: var(--pkb-primary);
    font-weight: 700;
}

.pkb-week-prev,
.pkb-week-next {
    padding: 12px 20px;
    background: var(--pkb-bg);
    border: 2px solid var(--pkb-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--pkb-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pkb-week-prev:hover,
.pkb-week-next:hover {
    background: var(--pkb-primary);
    color: white;
    border-color: var(--pkb-primary);
    transform: translateY(-2px);
    box-shadow: var(--pkb-shadow);
}

.pkb-week-today-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 15px;
    border-top: 2px solid var(--pkb-border);
}

.pkb-btn-today,
.pkb-btn-recurring {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pkb-btn-today {
    background: var(--pkb-success);
    color: white;
}

.pkb-btn-today:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--pkb-shadow);
}

.pkb-btn-recurring {
    background: var(--pkb-warning);
    color: white;
}

.pkb-btn-recurring:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: var(--pkb-shadow);
}

/* ========================================
   TABLERO SEMANAL
   ======================================== */

.pkb-weekly-board {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pkb-day-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--pkb-shadow);
    transition: all 0.3s ease;
}

.pkb-day-section.today {
    border: 3px solid var(--pkb-success);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
}

.pkb-day-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--pkb-border);
}

.pkb-day-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--pkb-text);
    margin: 0;
    flex: 1;
}

.pkb-day-section.today .pkb-day-name {
    color: var(--pkb-success);
}

.pkb-day-date {
    font-size: 14px;
    color: var(--pkb-text-light);
    font-weight: 600;
}

.pkb-add-task-day-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px dashed var(--pkb-border);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkb-add-task-day-btn:hover {
    background: var(--pkb-primary);
    border-color: var(--pkb-primary);
    color: white;
    transform: scale(1.1);
}

/* ========================================
   COLUMNAS DE ESTADO
   ======================================== */

.pkb-day-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 1024px) {
    .pkb-day-columns {
        grid-template-columns: 1fr;
    }
}

.pkb-status-column {
    background: var(--pkb-bg);
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.pkb-status-column-header {
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pkb-status-column[data-status="todo"] .pkb-status-column-header {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
    color: white;
}

.pkb-status-column[data-status="in_progress"] .pkb-status-column-header {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
}

.pkb-status-column[data-status="done"] .pkb-status-column-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.pkb-status-icon {
    font-size: 16px;
}

.pkb-status-name {
    flex: 1;
}

.pkb-status-count {
    background: rgba(255,255,255,0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    min-width: 24px;
    text-align: center;
}

.pkb-status-column-content {
    flex: 1;
    padding: 10px;
    min-height: 80px;
}

/* ========================================
   TAREAS EN COLUMNAS DE ESTADO
   ======================================== */

.pkb-status-column-content .pkb-task {
    background: white;
    border: 2px solid var(--pkb-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: move;
    transition: all 0.3s ease;
}

.pkb-status-column-content .pkb-task:hover {
    box-shadow: var(--pkb-shadow-hover);
    transform: translateY(-2px);
}

.pkb-status-column-content .pkb-task.sortable-ghost {
    opacity: 0.4;
    background: #f0f0f0;
}

.pkb-status-column-content .pkb-task.sortable-drag {
    opacity: 1;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transform: rotate(3deg);
}

.pkb-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.pkb-task-time {
    font-size: 12px;
    color: var(--pkb-text-light);
    font-weight: 600;
    background: var(--pkb-bg);
    padding: 3px 8px;
    border-radius: 4px;
}

.pkb-task-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pkb-task:hover .pkb-task-actions {
    opacity: 1;
}

.pkb-task-action {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pkb-task-action:hover {
    background: var(--pkb-bg);
    transform: scale(1.2);
}

.pkb-task-action.edit:hover {
    background: #e3f2fd;
}

.pkb-task-action.delete:hover {
    background: #ffebee;
}

.pkb-task-content {
    font-size: 14px;
    color: var(--pkb-text);
    line-height: 1.5;
    word-wrap: break-word;
}

.pkb-task-recurring-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 8px;
}

/* ========================================
   MODAL DE TAREAS RECURRENTES
   ======================================== */

.pkb-modal-large {
    max-width: 800px;
}

.pkb-recurring-description {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #1565c0;
    font-weight: 500;
}

.pkb-recurring-list {
    max-height: 400px;
    overflow-y: auto;
}

.pkb-recurring-item {
    background: var(--pkb-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pkb-recurring-item:hover {
    border-color: var(--pkb-primary);
    box-shadow: var(--pkb-shadow);
}

.pkb-recurring-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
}

.pkb-recurring-info {
    flex: 1;
}

.pkb-recurring-text {
    font-weight: 600;
    color: var(--pkb-text);
    margin-bottom: 4px;
}

.pkb-recurring-meta {
    font-size: 12px;
    color: var(--pkb-text-light);
    display: flex;
    gap: 15px;
}

.pkb-recurring-actions {
    display: flex;
    gap: 5px;
}

.pkb-recurring-delete {
    padding: 8px 12px;
    background: var(--pkb-danger);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
}

.pkb-recurring-delete:hover {
    background: #da190b;
    transform: scale(1.05);
}

/* ========================================
   CHECKBOX PERSONALIZADO
   ======================================== */

.pkb-form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    background: var(--pkb-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pkb-form-checkbox:hover {
    background: #e8eaf6;
}

.pkb-form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.pkb-form-help {
    font-size: 12px;
    color: var(--pkb-text-light);
    margin: 8px 0 0 0;
    padding-left: 30px;
}

/* ========================================
   RESPONSIVE PARA VISTA SEMANAL
   ======================================== */

@media (max-width: 768px) {
    .pkb-week-header {
        flex-direction: column;
    }
    
    .pkb-week-prev,
    .pkb-week-next {
        width: 100%;
        justify-content: center;
    }
    
    .pkb-week-today-bar {
        flex-direction: column;
    }
    
    .pkb-btn-today,
    .pkb-btn-recurring {
        width: 100%;
        justify-content: center;
    }
    
    .pkb-day-header {
        flex-wrap: wrap;
    }
    
    .pkb-day-name {
        flex-basis: 100%;
    }
}
