* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 2rem;
}

.controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.controls select, .controls input, .controls button {
    padding: 10px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.controls select:focus, .controls input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.controls button {
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.controls button:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.stats {
    text-align: center;
    color: #666;
    font-weight: 500;
}

main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.task-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.task-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

.task-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.meta-tag {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    border: 1px solid #e9ecef;
}

.task-content {
    font-size: 16px;
    line-height: 1.7;
}

.task-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: white;
}

.no-tasks {
    text-align: center;
    padding: 50px;
    color: white;
    font-size: 18px;
}

#pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 15px;
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.page-btn.active {
    background: #667eea;
    color: white;
}

footer {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.8);
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
    }
    
    .controls select, .controls input {
        width: 100%;
    }
    
    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .task-meta {
        width: 100%;
    }
}