/* ===== Daily Task System Styles ===== */

/* Daily Task Section */
.daily-task-section {
    margin: 2rem 0;
    max-width: 100%;
}

/* Task Card Styles */
.task-card {
    background: var(--color-game-dark-card);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(168, 85, 247, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-game-purple);
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-game-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.task-card:hover::before,
.task-card.active::before {
    transform: scaleX(1);
}

.task-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-game-neon);
    border-color: var(--color-game-neon-cyan);
}

.task-card.active {
    border-color: var(--color-game-purple-400);
    box-shadow: var(--shadow-game-purple);
}

.task-card.empty {
    background: var(--color-game-dark-surface);
    border-style: dashed;
    border-color: rgba(168, 85, 247, 0.3);
    text-align: center;
}

.task-card.empty:hover {
    background: var(--color-game-dark-card);
    border-color: var(--color-game-purple-400);
}

/* Task Header */
.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.task-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

/* Large Task Icon with Enhanced Image Frame - 5x Bigger */
.task-icon-large {
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 2rem;
    max-width: 100%;
}

.task-image-frame {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: var(--gradient-game-primary, linear-gradient(135deg, #a855f7 0%, #7c3aed 100%));
    padding: 8px;
    box-shadow:
        0 25px 50px var(--shadow-game-purple, rgba(168, 85, 247, 0.4)),
        0 12px 35px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(187, 134, 252, 0.4);
}

.task-image-frame:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow:
        0 40px 80px var(--shadow-game-purple, rgba(168, 85, 247, 0.5)),
        0 20px 50px rgba(0, 0, 0, 0.25),
        0 0 60px var(--color-game-neon-cyan, rgba(0, 255, 255, 0.3)),
        inset 0 2px 0 rgba(255, 255, 255, 0.25);
    border-color: var(--color-game-neon-cyan, rgba(0, 255, 255, 0.7));
}

.task-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    filter: brightness(1.05) contrast(1.15) saturate(1.15);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.task-image-frame:hover img {
    filter: brightness(1.15) contrast(1.25) saturate(1.25);
    transform: scale(1.02);
}

.task-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 32px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(0, 255, 255, 0.06) 50%,
        rgba(168, 85, 247, 0.12) 75%,
        rgba(0, 0, 0, 0.12) 100%
    );
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.4s ease;
}

.task-image-frame:hover .task-image-overlay {
    opacity: 1;
}

.task-image-border {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 28px;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.7),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2),
        0 0 30px var(--color-game-neon-cyan, rgba(0, 255, 255, 0.4));
    animation: borderGlow 5s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% {
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow:
            inset 0 3px 0 rgba(255, 255, 255, 0.7),
            inset 0 -3px 0 rgba(0, 0, 0, 0.2),
            0 0 30px var(--color-game-neon-cyan, rgba(0, 255, 255, 0.4));
    }
    100% {
        border-color: var(--color-game-neon-cyan, rgba(0, 255, 255, 0.9));
        box-shadow:
            inset 0 3px 0 rgba(255, 255, 255, 0.9),
            inset 0 -3px 0 rgba(0, 0, 0, 0.1),
            0 0 50px var(--color-game-neon-cyan, rgba(0, 255, 255, 0.6)),
            0 0 25px var(--color-game-purple-400, rgba(187, 134, 252, 0.5));
    }
}

.task-icon-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-game-primary, linear-gradient(135deg, #a855f7 0%, #7c3aed 100%));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    box-shadow:
        0 25px 50px var(--shadow-game-purple, rgba(168, 85, 247, 0.4)),
        inset 0 3px 0 rgba(255, 255, 255, 0.25);
    animation: iconFloat 3s ease-in-out infinite;
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.task-icon-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.25),
        transparent
    );
    animation: shimmerSlide 4s ease-in-out infinite;
}

@keyframes shimmerSlide {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.task-icon img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.task-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.task-status-badge.active {
    background: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%);
    color: #c05621;
    border: 1px solid #fed7aa;
    animation: activePulse 2s ease-in-out infinite;
}

.task-status-badge.completed {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    color: #22543d;
    border: 1px solid #c6f6d5;
}

@keyframes activePulse {
    0%, 100% { box-shadow: 0 0 0 rgba(237, 137, 54, 0.4); }
    50% { box-shadow: 0 0 20px rgba(237, 137, 54, 0.4); }
}

/* Task Content */
.task-content {
    margin-bottom: 1.5rem;
}

.task-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    background: var(--gradient-game-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.task-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--color-game-dark-surface);
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.task-duration {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%) !important;
    border-color: #81e6d9 !important;
    color: #234e52 !important;
}

.task-quest-id {
    background: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%) !important;
    border-color: #f6ad55 !important;
    color: #744210 !important;
}

/* Task Action */
.task-action {
    display: flex;
    justify-content: center;
    align-items: center;
}

.task-progress-ring {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-check {
    font-size: 1.5rem;
    animation: checkBounce 0.6s ease-out;
}

@keyframes checkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.progress-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: progressSpin 1.5s linear infinite;
}

@keyframes progressSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty Task Card */
.task-empty-content {
    padding: 2rem;
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
    animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.task-empty-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.task-empty-content p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.get-task-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-game-primary);
    color: var(--color-text-primary);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-game-purple);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.get-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-game-neon);
}

/* Task Modal Styles */
.task-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
}

.task-modal-content {
    background: var(--color-game-dark-surface);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-game-purple);
    border: 2px solid rgba(168, 85, 247, 0.3);
}

.task-modal-content.new-task {
    max-width: 500px;
}

.task-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 0 2rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.task-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    background: var(--gradient-game-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f7fafc;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #edf2f7;
    transform: scale(1.1);
}

.task-modal-body {
    padding: 0 2rem 2rem 2rem;
}

/* Task Image Container */
.task-image-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-placeholder {
    font-size: 3rem;
    color: white;
}

/* Task Info Grid */
.task-info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

.info-item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.status-badge.completed {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    color: #22543d;
    border: 1px solid #c6f6d5;
}

.status-badge.in-progress {
    background: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%);
    color: #c05621;
    border: 1px solid #fed7aa;
}

/* New Task Illustration */
.new-task-illustration {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.quest-scroll {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: scrollFloat 3s ease-in-out infinite;
}

@keyframes scrollFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.sparkles {
    font-size: 2rem;
    position: absolute;
    top: 0;
    right: 30%;
    animation: sparkleRotate 4s ease-in-out infinite;
}

@keyframes sparkleRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.2); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.2); }
}

.new-task-content {
    text-align: center;
}

.new-task-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.new-task-content p {
    color: #718096;
    line-height: 1.6;
}

/* Task Modal Actions */
.task-modal-actions {
    padding: 0 2rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.task-modal-actions.centered {
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

.game-link {
    flex: 1;
}

.refresh-btn {
    flex: 1;
}

.get-quest-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.get-quest-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(72, 187, 120, 0.5);
}

/* Complete Quest Button */
.task-complete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 25px rgba(16, 185, 129, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    border: none;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 300px;
}

.task-complete-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.task-complete-btn:hover::before {
    left: 100%;
}

.task-complete-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 15px 35px rgba(16, 185, 129, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.task-complete-btn:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 8px 20px rgba(16, 185, 129, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.task-complete-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    box-shadow: 0 4px 15px rgba(156, 163, 175, 0.3);
}

.task-complete-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(156, 163, 175, 0.3);
}

/* Complete Button Animation States */
.task-complete-btn.completing {
    pointer-events: none;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    animation: completingPulse 1.5s ease-in-out infinite;
}

@keyframes completingPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6);
    }
}

.task-complete-btn.completed {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    animation: completedSuccess 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes completedSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Complete Button Icon Animation */
.task-complete-btn .complete-icon {
    transition: transform 0.3s ease;
}

.task-complete-btn:hover .complete-icon {
    transform: scale(1.2) rotate(10deg);
}

.task-complete-btn.completing .complete-icon {
    animation: iconSpin 1.5s linear infinite;
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* No Task Display */
.no-task-display {
    text-align: center;
    padding: 2rem;
}

.no-task-display .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-task-display h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.no-task-display p {
    color: #718096;
    line-height: 1.6;
}

.current-task-display {
    text-align: center;
}

/* Day Task Modal Specific */
.day-task-modal .task-modal-content {
    max-width: 500px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .task-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .task-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .task-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .task-icon-large {
        width: 240px;
        height: 240px;
        font-size: 6rem;
    }

    .task-title {
        font-size: 1.2rem;
    }

    .task-meta {
        flex-direction: column;
        align-items: center;
    }

    .task-modal {
        padding: 1rem;
    }

    .task-modal-content {
        max-width: 100%;
    }

    .task-modal-header {
        padding: 1.5rem 1.5rem 0 1.5rem;
    }

    .task-modal-body {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .task-modal-actions {
        padding: 0 1.5rem 1.5rem 1.5rem;
        flex-direction: column;
    }

    .task-complete-btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        max-width: 280px;
    }

    .task-info-grid {
        gap: 0.75rem;
    }

    .info-item {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .task-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .task-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .task-title {
        font-size: 1rem;
    }

    .task-meta span {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .task-image-container {
        width: 80px;
        height: 80px;
    }

    .task-icon-large {
        width: 160px;
        height: 160px;
        font-size: 4rem;
    }

    .task-placeholder {
        font-size: 2rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .task-card {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .task-header {
        gap: 0.75rem;
    }

    .task-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .task-icon-large {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .task-title {
        font-size: 1rem;
    }

    .task-meta span {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    .task-image-container {
        width: 60px;
        height: 60px;
    }

    .task-placeholder {
        font-size: 1.5rem;
    }

    .task-complete-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        max-width: 250px;
    }
}

/* Animation Enhancements */
.task-card {
    animation: taskCardSlideIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes taskCardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task-modal-content {
    animation: modalBounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes modalBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Loading States */
.task-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: #718096;
}

.task-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: loadingSpin 1s linear infinite;
    margin-right: 1rem;
}

@keyframes loadingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
