/* Content Page CSS for DailyDo To-Do List App */

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f6f8fa;
    color: #222;
}

.container-btnnav {
    background: #fff;
    box-shadow: 0 2px 8px rgba(80, 112, 255, 0.08);
    padding: 12px 0;
    display: flex;
    justify-content: center;
}

.content-btnnav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-home img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    transition: transform 0.2s;
}

.btn-home:hover img {
    transform: scale(1.1);
}

.search-task {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 8px;
}

.search-task img {
    width: 28px;
    height: 28px;
}

.search-task-input {
    padding: 8px 16px;
    border: 1px solid #b0b7c3;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
    margin-left: 4px;
}

.search-task-input:focus {
    border: 1.5px solid #2575fc;
}

.container-nav {
    margin: 32px 0 0 0;
    display: flex;
    justify-content: center;
}

.content-nav {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(80, 112, 255, 0.08);
    padding: 32px 48px 24px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
    width: 100%;
    max-width: 500px;
}

.title-nav h1 {
    margin: 0 0 16px 0;
    font-size: 2.2rem;
    color: #2575fc;
    letter-spacing: 1px;
}

.button-nav {
    display: flex;
    gap: 16px;
    justify-content: center;
    width: 100%;
    margin: 24px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid #f0f2f7;
}

.button-nav button {
    flex: 1 1 0;
    min-width: 120px;
    max-width: 180px;
    padding: 12px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(80, 112, 255, 0.12);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-bottom: 8px;
}

.button-nav button:hover {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    transform: translateY(-2px) scale(1.04);
}

.container-task {
    margin: 40px 0 0 0;
    display: flex;
    justify-content: center;
}

.content-task {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(80, 112, 255, 0.08);
    padding: 32px 48px;
    min-width: 320px;
    width: 100%;
    max-width: 600px;
}

.task-list {
    min-height: 120px;
}

/* Task Modal Styles */
.task-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #000;
}

.modal-content h2 {
    margin: 0 0 24px 0;
    color: #2575fc;
    font-size: 1.8rem;
}

.modal-body {
    margin-bottom: 24px;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.detail-item span {
    display: block;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.detail-item textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.detail-item textarea:focus {
    border-color: #2575fc;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.1);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#save-details {
    background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
    color: white;
}

#save-details:hover {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    transform: translateY(-1px);
}

#cancel-details {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

#cancel-details:hover {
    background: #e9ecef;
    color: #333;
}

/* Task Item Improvements */
.task-item {
    transition: all 0.2s ease !important;
}

.task-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

/* Form styling improvements */
#add-task-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

#new-task-input {
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

#new-task-input:focus {
    border-color: #2575fc;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.1);
    outline: none;
}

#add-task-btn {
    background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#add-task-btn:hover {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    transform: translateY(-1px);
}

/* Custom Checklist Styles */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 100%;
    padding: 0 8px;
    position: relative;
}
.custom-checkbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    z-index: 2;
}
.checkmark {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: #f6f8fa;
    border: 2px solid #b0b7c3;
    border-radius: 6px;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    z-index: 1;
}
.checkbox-wrapper:hover .checkmark {
    border-color: #2575fc;
}
.custom-checkbox:checked + .checkmark {
    background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
    border-color: #2575fc;
}
.checkmark:after {
    content: '';
    position: absolute;
    display: none;
}
.custom-checkbox:checked + .checkmark:after {
    display: block;
}
.checkmark:after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    border-radius: 1px;
    transform: rotate(45deg);
    content: '';
}

@media (max-width: 600px) {
    .content-nav, .content-task {
        min-width: 90vw;
        padding: 24px 8px;
    }
    .title-nav h1 {
        font-size: 1.5rem;
    }
    .button-nav {
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
    }
    .button-nav button {
        min-width: unset;
        width: 100%;
        max-width: unset;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 24px;
        width: 95%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
    }
}

.madeby {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    font-size: 1rem;
    color: #b0b7c3;
    opacity: 0.7;
    letter-spacing: 1px;
    z-index: 100;
    user-select: none;
    pointer-events: none;
} 