/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Search Section Styles */
.search-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.search-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

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

.btn.completed {
    background: #28a745;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Todo List Styles */
.todos-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.todos-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
}

.todo-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.todo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.todo-header h3 {
    color: #333;
    font-size: 1.2rem;
}

.priority {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.priority.high {
    background: #dc3545;
    color: white;
}

.priority.medium {
    background: #ffc107;
    color: #333;
}

.priority.low {
    background: #28a745;
    color: white;
}

.todo-item p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.todo-actions {
    display: flex;
    gap: 10px;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-results p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Pagination Styles */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-page {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    font-size: 14px;
}

.btn-page:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-page.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-ellipsis {
    padding: 8px 12px;
    color: #6c757d;
    font-weight: 600;
}

/* Message Notification Styles */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.message.success {
    background: #28a745;
}

.message.error {
    background: #dc3545;
}

.message.info {
    background: #17a2b8;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .search-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .search-actions {
        flex-direction: column;
    }
    
    .todo-actions {
        flex-direction: column;
    }
    
    .pagination-controls {
        gap: 5px;
    }
    
    .btn-page {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .search-section,
    .todos-section {
        padding: 20px;
    }
    
    .todo-item {
        padding: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .search-actions {
        gap: 10px;
    }
}