/* Bobaremember Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   }
   
body, h3 {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #ffffff;
    background-color: #907ABF;
    min-height: 100vh;
    padding: 30px 15px;
}
   
/* Typography */
h2 {
    font-weight: 400;
    color: #F2DCEC;
}
   
/* App Container */
.app-container {
    max-width: 600px;
    margin: 0 auto;
}
   
/* Header */
.app-header {
    text-align: center;
    margin-bottom: 25px;
}
   
.app-title {
    font-size: 32px;
    font-family: Borel;
    font-weight: lighter;
    color: #F2DCEC;
    margin-bottom: 5px;
}
   
.app-subtitle {
    color: #ffffff;
    font-size: 16px;
}
   
/* Main Card */
.main-card {
    background-color: #5E518C;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.07);
    overflow: hidden;
}
   
/* Form Section */
.task-form-container {
    padding: 25px;
    background: #5e5386;
}

#task-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

#task-input, #task-priority, #task-date {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#task-input:focus, #task-priority:focus, #task-date:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

button[type="submit"] {
    background-color: #F2DCEC;
    color: #362f50;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: cell;
}

button[type="submit"]:hover {
    background-color: #f4c9e8;
}

.error {
    color: #fff;
    background-color: rgba(220, 53, 69, 0.8);
    padding: 8px 12px;
    border-radius: 5px;
    margin-top: 5px;
    font-size: 14px;
    display: block;
}

#form-heading {
    margin-bottom: 15px;
}
   
/* Tasks Section */
.tasks-container {
    padding: 20px 25px;
}
   
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ffffff;
}

.section-title {
    margin-bottom: 15px;
}
   
/* Task Filter Navigation */
nav {
    display: flex;
    gap: 12px;
}
   
.filter-btn {
    background: none;
    border: none;
    color: #f4c9e8;
    font-size: 15px;
    padding: 5px 3px;
   }
   
.filter-btn:active {
    color: #ffa0e3;
    font-weight: 500;
}
   
.filter-btn:hover {
    color: #ffb0e9;
}
   
/* Task List */
#task-list {
    list-style-type: none;
    margin-bottom: 20px;
}

/* Task Item Styling */
.task-item {
    display: flex;
    align-items: center;
    padding: 16px 5px;
    border-bottom: 1px solid #ffffff;
}

/* Priority Indicators */
.task-item-high {
    border-left: 4px solid #ff8892;
}

.task-item-medium {
    border-left: 4px solid #fffd88;
}

.task-item-low {
    border-left: 4px solid #9eff88;
}

/* Custom Checkbox */
.task-checkbox {
    margin-right: 15px;
    width: 22px;
    height: 22px;
    accent-color: #F2DCEC;
}

/* Task Content */
.task-content {
    flex: 1;
    margin-right: 15px;
}

.task-text {
    margin-bottom: 5px;
}

.task-details {
    font-size: 12px;
}

.task-completed .task-text {
    text-decoration: line-through;
    color: #a0a0a0;
}

/* Delete Button */
.delete-btn {
    background-color: transparent;
    border: none;
    padding: 5px;
    border-radius: 4px;
    color: #f4c9e8;
}

.delete-btn:hover {
    color: #ffb0e9;
}
   
/* Empty state */
.empty-state {
    content: "Don't you have things to do? Add a task to get started! 🦊";
    text-align: center;
    color: #F2DCEC;
    padding: 30px 20px;
}
   
/* Task Summary */
.tasks-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5px 5px 5px;
    border-top: 1px solid #ffffff;
    font-size: 14px;
}

/* Clear completed button */
#clear-completed-btn {
    background: none;
    border: none;
    color: #f4c9e8;
    font-size: 14px;
}
   
#clear-completed-btn:hover {
    color: #ffb0e9;
}

/* Footer */
.app-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

/* Media Query for Mobile Devices */
@media (max-width: 600px) {
    .section-header {
        flex-direction: column;
    }

    button[type="submit"] {
        width: 100%;
    }

    /* Optimize for touch */
    .task-checkbox {
        width: 24px;
        height: 24px;
    }

    .delete-btn {
        padding: 8px;
    }

    .filter-btn {
        padding: 8px 5px;
    }
}
