* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f6fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.board {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.column {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 32%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.column h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.task-list {
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.task {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: move;
    transition: transform 0.2s;
}

.task:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task p {
    margin-bottom: 5px;
    color: #2c3e50;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Arial', sans-serif;
    word-break: break-all;
}

.task .date {
    font-size: 0.8em;
    color: #6c757d;
}

.add-task {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-task:hover {
    background: #0056b3;
}

.calendar-container {
    margin: 20px auto;
    max-width: 350px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.calendar-container:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Customize calendar appearance */
.flatpickr-calendar {
    width: 100% !important;
    max-width: 800px;
    font-size: 1.3em;
    border-radius: 15px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    background: #ffffff !important;
}

.flatpickr-months {
    background-color: #007bff !important;
    color: white !important;
    border-radius: 15px 15px 0 0 !important;
    font-weight: bold !important;
}

.flatpickr-weekdays {
    background-color: #e9f0ff !important;
    border-radius: 0 0 15px 15px !important;
}

.flatpickr-day {
    margin: 5px;
    height: 50px !important;
    line-height: 50px !important;
    border-radius: 10px !important;
    transition: background-color 0.3s ease;
}

.flatpickr-day:hover {
    background-color: #cce4ff !important;
}

.flatpickr-day.today {
    background-color: #007bff !important;
    color: white !important;
    font-weight: bold !important;
}

.flatpickr-day.selected, .flatpickr-day.selected:hover {
    background-color: #0056b3 !important;
    color: white !important;
}

.flatpickr-day.task-mark {
    position: relative;
}

.flatpickr-day.task-mark::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #007bff;
    border-radius: 50%;
}

.task.dragging {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .board {
        flex-direction: column;
    }
    
    .column {
        width: 100%;
        margin-bottom: 20px;
    }
}

.calendar-hidden-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.hidden-tasks-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 800px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hidden-tasks-container h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2em;
}

.hidden-task-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hidden-task-item p {
    flex: 1;
    margin-right: 10px;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}
.task p {
    flex: 1;
    margin-right: 10px;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Reset calendar size to original */
.calendar-container {
    max-width: 300px;
}

.flatpickr-calendar {
    max-width: 300px !important;
    font-size: 1em;
}

.task {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task p {
    flex: 1;
    margin-right: 10px;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.task .hide-btn {
    flex-shrink: 0;
}

.hidden-task-item p {
    margin: 0;
    color: #2c3e50;
}

.hidden-task-item .date {
    font-size: 0.8em;
    color: #6c757d;
}

.hidden-task-item button {
    background: #dc3545;
    border: none;
    color: white;
    border-radius: 3px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 0.8em;
    transition: background 0.3s;
    margin-left: 5px;
}

.hidden-task-item .btn-group {
    position: static;
    display: flex;
    gap: 5px;
    margin-left: 10px;
    flex-shrink: 0;
}

.hidden-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.hidden-task-item p, .hidden-task-item .date {
    margin: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 70%;
}

.hidden-task-item button:hover {
    background: #a71d2a;
}
