/**
 * Tasks Module - Styles
 * 
 * @package ProCodeHub
 * @since 1.0.0
 */

/* Task Cards */
.task-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.task-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.task-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status-completed {
    background: #e0e7ff;
    color: #3730a3;
}

.status-cancelled {
    background: #f3f4f6;
    color: #6b7280;
}

.task-actions {
    display: flex;
    gap: 8px;
}

.task-edit-btn,
.task-delete-btn,
.task-cancel-btn,
.task-boost-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.task-edit-btn:hover {
    background: #dbeafe;
    color: #2563eb;
}

.task-boost-btn:hover {
    background: #fef3c7;
    color: #f59e0b;
    transform: translateY(-2px);
}

.task-cancel-btn:hover {
    background: #fef3c7;
    color: #f59e0b;
}

.task-delete-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.task-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.task-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.task-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.meta-value {
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

.task-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.task-progress-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    min-width: 45px;
    text-align: right;
}

.task-comment {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.task-comment strong {
    display: block;
    margin-bottom: 8px;
    color: #92400e;
    font-size: 13px;
}

.task-comment p {
    margin: 0;
    color: #78350f;
    font-size: 14px;
    line-height: 1.5;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.task-date {
    font-size: 13px;
    color: #9ca3af;
}

.task-footer-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.task-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.task-link:hover {
    color: #1d4ed8;
}

.task-check-link {
    background: #dbeafe;
    padding: 8px 12px;
    border-radius: 6px;
    color: #1e40af;
}

.task-check-link:hover {
    background: #bfdbfe;
    color: #1e3a8a;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.empty-state p {
    color: #6b7280;
    font-size: 14px;
}

/* Notifications */
.pch-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.pch-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.pch-notification-success {
    background: #d1fae5;
    color: #065f46;
}

.pch-notification-error {
    background: #fee2e2;
    color: #991b1b;
}

.pch-notification-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Responsive */
@media (max-width: 768px) {
    .task-card {
        padding: 16px;
    }
    
    .task-card-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .task-title-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .task-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .task-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .task-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .task-footer-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .task-link,
    .task-check-link {
        width: 100%;
        justify-content: center;
    }
    
    .pch-notification {
        left: 20px;
        right: 20px;
        transform: translateY(-100px);
    }
    
    .pch-notification.show {
        transform: translateY(0);
    }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #dc2626;
    font-size: 16px;
    background: #fee2e2;
    border-radius: 12px;
}

/* Extend Task Styles */
.task-extend-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #10b981;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.task-extend-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.status-badge.status-full {
    background: #fee2e2;
    color: #991b1b;
}

.task-extend-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    margin-bottom: 16px;
}

.task-extend-notice svg {
    flex-shrink: 0;
    color: #f59e0b;
    margin-top: 2px;
}

.task-extend-notice span {
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}
