.tasks-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.tasks-left,
.tasks-right {
    min-height: 400px;
}

.section-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.section-card h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hint {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

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

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

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.color-select {
    cursor: pointer;
}

.btn-add-task {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-add-task:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.reminders-section {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea30;
}

.reminders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.reminders-list::-webkit-scrollbar {
    width: 6px;
}

.reminders-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.reminders-list::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 10px;
}

.reminder-item {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.reminder-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.reminder-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.reminder-content {
    flex: 1;
}

.reminder-content strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px;
}

.reminder-time {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.time-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
}

.reminder-details {
    color: #95a5a6;
    font-size: 13px;
    margin-top: 5px;
}

.no-reminders {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.no-reminders p {
    font-size: 18px;
    margin-bottom: 10px;
}

.no-reminders small {
    font-size: 14px;
    color: #bdc3c7;
}

.all-tasks-section {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.all-tasks-section h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 25px;
}

.task-search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.task-search-form input[type="text"] {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.task-search-form input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.task-search-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.task-search-form button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-clear-search {
    background: #95a5a6;
    color: white;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-clear-search:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.task-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border-left: 5px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.task-header strong {
    color: #2c3e50;
    font-size: 18px;
    flex: 1;
}

.calendar-badge {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.task-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.task-time {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #7f8c8d;
    font-size: 14px;
    padding-top: 10px;
    border-top: 1px solid #ecf0f1;
}

.task-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-edit,
.btn-delete {
    flex: 1;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

.btn-edit {
    background-color: #3498db;
    color: white;
}

.btn-edit:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.no-tasks {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.no-tasks p {
    font-size: 18px;
    font-style: italic;
}

.message {
    padding: 14px 18px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #2ecc71;
}

@media(max-width: 1200px) {
    .tasks-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media(max-width: 992px) {
    .tasks-container {
        grid-template-columns: 1fr;
    }
    
    .tasks-left,
    .tasks-right {
        min-height: auto;
    }
}

@media(max-width: 768px) {
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .task-actions {
        flex-direction: column;
    }
    
    .section-card {
        padding: 20px;
    }
}