/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2rem 0;
    text-align: center;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #ffcc00;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    color: #ffcc00;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 2rem 0;
}

/* Income Display */
.income-display {
    text-align: center;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid #ffcc00;
}

.income-display h2 {
    color: #1a2a6c;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.income-box {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    display: inline-block;
    margin: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid #ffcc00;
}

#current-income {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Payment Section */
.payment-section {
    text-align: center;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid #ffcc00;
}

.payment-section h2 {
    color: #1a2a6c;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.payment-box {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    display: inline-block;
    margin: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid #ffcc00;
}

.payment-box p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.payment-btn {
    background: white;
    color: #4CAF50;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.payment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

/* Tasks Section */
.tasks-section {
    margin-bottom: 3rem;
}

.tasks-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    font-size: 2rem;
}

.tasks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.task-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid #1a2a6c;
    backdrop-filter: blur(5px);
}

.task-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: #ffcc00;
}

.task-card h3 {
    color: #1a2a6c;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.task-card p {
    margin-bottom: 1rem;
    color: #555;
}

.task-card .reward {
    font-weight: bold;
    color: #b21f1f;
    margin-bottom: 1rem;
    display: block;
    font-size: 1.2rem;
}

.complete-btn {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.complete-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #b21f1f, #1a2a6c);
}

.complete-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.completed {
    background: linear-gradient(135deg, #4CAF50, #2E7D32) !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
}

/* Instructions */
.instructions {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid #1a2a6c;
}

.instructions h2 {
    color: #1a2a6c;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.8rem;
}

.instructions ol {
    padding-left: 2rem;
}

.instructions li {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border-top: 3px solid #ffcc00;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .income-box {
        padding: 1rem;
    }
    
    #current-income {
        font-size: 2rem;
    }
    
    .tasks-container {
        grid-template-columns: 1fr;
    }
    
    .task-card {
        margin-bottom: 20px;
    }
}

/* Animation for new tasks */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task-card {
    animation: fadeInUp 0.5s ease forwards;
}

.task-card:nth-child(1) { animation-delay: 0.1s; }
.task-card:nth-child(2) { animation-delay: 0.2s; }
.task-card:nth-child(3) { animation-delay: 0.3s; }
.task-card:nth-child(4) { animation-delay: 0.4s; }
.task-card:nth-child(5) { animation-delay: 0.5s; }
.task-card:nth-child(6) { animation-delay: 0.6s; }
.task-card:nth-child(7) { animation-delay: 0.7s; }
.task-card:nth-child(8) { animation-delay: 0.8s; }
.task-card:nth-child(9) { animation-delay: 0.9s; }