/* Styles for Daily Activity Tracker - Google Tasks Style */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
    background: #fff;
    color: #202124;
}

/* Main Container - Two Column Layout */
#main-container {
    display: flex;
    min-height: 100vh;
}

/* Left Sidebar */
#left-panel {
    width: 280px;
    padding: 10px;
    border-right: 1px solid #e0e0e0;
}

/* Create Button */
#create-task-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#create-task-btn:hover {
    background: #f6f9fe;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Navigation Menu */
#nav-menu {
    margin-top: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 14px;
    color: #3c4043;
}

.nav-item:hover {
    background: #f1f3f4;
}

.nav-item.active {
    background: #e8f0fe;
    color: #1967d2;
    font-weight: 500;
}

.nav-icon {
    font-size: 18px;
}

/* Right Panel */
#right-panel {
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
}

#right-panel h2 {
    font-size: 22px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 20px;
}

/* Add Task Link */
#add-task-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
    color: #1a73e8;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

#add-task-link:hover {
    background: #f8f9fa;
}

.add-icon {
    font-size: 18px;
}

/* Task List */
#task-list {
    list-style: none;
}

#task-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    gap: 12px;
}

#task-list li span {
    flex: 1;
    font-size: 16px;
    color: #202124;
}

/* Checkbox Styling */
.task-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1a73e8;
}

/* Done Task Styling */
.task-done span {
    text-decoration: line-through;
    color: #9e9e9e;
}

/* Task Menu */
.task-menu {
    position: relative;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #5f6368;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 50%;
}

.menu-btn:hover {
    background: #f1f3f4;
}

.menu-options {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10;
    min-width: 120px;
}

.menu-options button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #3c4043;
}

.menu-options button:hover {
    background: #f1f3f4;
}

/* Popup Overlay */
#task-form-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#task-form-popup[hidden] {
    display: none;
}

/* Form Container */
#task-form-container {
    background: white;
    padding: 24px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

#task-form-container h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #202124;
}

/* Form Elements */
#task-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #5f6368;
}

#task-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
}

#task-form input:focus {
    outline: none;
    border-color: #1a73e8;
}

/* Form Buttons */
#form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

#save-task-btn,
#cancel-task-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

#save-task-btn {
    background: #1a73e8;
    color: white;
}

#save-task-btn:hover {
    background: #1557b0;
}

#cancel-task-btn {
    background: transparent;
    color: #1a73e8;
}

#cancel-task-btn:hover {
    background: #f1f3f4;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    #main-container {
        flex-direction: column;
    }

    #left-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 10px 15px;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    #create-task-btn {
        margin-bottom: 0;
    }

    #nav-menu {
        margin-top: 0;
    }

    .nav-item {
        padding: 8px 15px;
        border-radius: 20px;
    }

    #right-panel {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 15px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    #left-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #create-task-btn {
        justify-content: center;
    }

    .nav-item {
        justify-content: center;
    }

    #right-panel h2 {
        font-size: 18px;
    }

    #task-list li {
        padding: 10px 0;
        gap: 8px;
    }

    #task-list li span {
        font-size: 14px;
    }

    /* Form adjustments */
    #task-form-container {
        width: 95%;
        padding: 16px;
    }

    #form-buttons {
        flex-direction: column;
    }

    #save-task-btn,
    #cancel-task-btn {
        width: 100%;
        text-align: center;
    }

    .menu-options {
        right: -10px;
    }
}
