body {
    background: #f4f4f4;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Notification Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 350px;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-left: 4px solid #007bff;
    transform: translateX(400px);
    transition: transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

.notification.info {
    border-left-color: #17a2b8;
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: #28a745;
}

.notification.error .notification-icon {
    color: #dc3545;
}

.notification.warning .notification-icon {
    color: #ffc107;
}

.notification.info .notification-icon {
    color: #17a2b8;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.notification-message {
    color: #666;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.notification-close:hover {
    background: #f0f0f0;
    color: #666;
}

.task-manager-container {
    background: #fff;
    max-width: 1200px;
    margin: 40px auto;
    padding: 24px 32px 32px 32px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* View Switcher */
.view-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.view-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn:hover {
    background: #e9ecef;
}

.view-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* View Content */
.view-content {
    display: none;
}

.view-content.active {
    display: block;
}

.task-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.task-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

#taskInput {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#taskDescription {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

#addTaskBtn {
    padding: 8px 16px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

#addTaskBtn:hover {
    background: #0056b3;
}

.task-input input[type="date"],
.task-input select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background: #fff;
}

.task-input select {
    min-width: 90px;
}

.task-priority {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    margin-right: 10px;
}

.priority-low {
    background: #e3f7e3;
    color: #218838;
}
.priority-medium {
    background: #fff3cd;
    color: #856404;
}
.priority-high {
    background: #f8d7da;
    color: #c82333;
}

.task-due-date {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
}

/* List View Styles */
.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    cursor: pointer;
}

.task-list li:hover {
    background: #f8f9fa;
}

.task-list li:last-child {
    border-bottom: none;
}

.task-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.task-completed {
    text-decoration: line-through;
    color: #aaa;
}

.task-actions {
    display: flex;
    gap: 5px;
}

.task-dropdown {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s;
}

.task-dropdown:hover {
    background: #e3f2fd;
}

.delete-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.delete-btn:hover {
    background: #ffeaea;
}

/* Calendar View Styles */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.2s;
}

.calendar-nav-btn:hover {
    background: #f8f9fa;
}

.calendar-grid {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.calendar-weekdays div {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #495057;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    padding: 10px;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    min-height: 80px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.calendar-day.has-tasks {
    background: #e3f2fd;
}

.calendar-day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.calendar-task {
    font-size: 11px;
    padding: 2px 4px;
    margin: 1px 0;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-task.completed {
    border-left: 3px solid #28a745;
    background: #d4edda;
    color: #155724;
}

.calendar-task.uncompleted {
    border-left: 3px solid #dc3545;
    background: #f8d7da;
    color: #721c24;
}

/* Board View Styles */
.board-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    min-height: 500px;
}

.board-column {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    min-height: 400px;
}

.board-column h3 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #495057;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.board-tasks {
    min-height: 300px;
}

.board-task {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: move;
    transition: all 0.2s;
    position: relative;
}

.board-task:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.board-task.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.board-task.completed {
    background: #d4edda;
    border-color: #28a745;
}

.board-task.in-progress {
    background: #fff3cd;
    border-color: #ffc107;
}

.board-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.board-task-title {
    font-weight: bold;
    flex: 1;
}

.board-task-actions {
    display: flex;
    gap: 5px;
}

.board-task-details {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

.modal-task-details {
    margin-top: 20px;
}

.modal-task-detail {
    margin-bottom: 15px;
}

.modal-task-detail label {
    font-weight: bold;
    color: #495057;
    display: block;
    margin-bottom: 5px;
}

.modal-task-detail span {
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .task-manager-container {
        margin: 20px;
        padding: 20px;
    }
    
    .view-switcher {
        flex-direction: column;
    }
    
    .board-container {
        grid-template-columns: 1fr;
    }
    
    .task-input-row {
        flex-direction: column;
    }
    
    .calendar-weekdays div,
    .calendar-day {
        padding: 8px;
        font-size: 14px;
    }
    
    .notification-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        margin-bottom: 8px;
        padding: 12px 15px;
    }
}
