@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');

:root {
    --primary: #B288C0;
    --secondary: #9A48D0;
    --bg: #7E5A9B;
    --card-bg: #E4B7E5;
    --text: #3D246C;
    --accent: #FFD6E0;
    --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
  
}

/* Navbar */
.navbar {
    width: 600px;
    margin: 2rem auto 1rem auto;
    background: var(--primary);
    border-radius: 50px;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.nav-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}
.navbar ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}
.navbar ul li a:hover {
    color: var(--accent);
}

/* Time */
.time {
    max-width: 900px;
    margin: 0 auto 2rem auto;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

/* Layout */
.dashboard-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.card, .badges-section, .goals-section, .habits-section {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 1.5rem 2rem;
    min-width: 220px;
    flex: 1 1 22%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), box-shadow var(--transition);
    color: var(--text);
}

/* Inputs and Buttons */
button, input, select {
    font-family: inherit;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    transition: background var(--transition), color var(--transition);
}
button {
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(108,99,255,0.12);
}
button:hover {
    background: var(--secondary);
}
input[type="text"] {
    width: 70%;
    margin-right: 0.5rem;
    background: #f1f1f1;
    color: var(--text);
}

/* To-Do List */
#todo-list {
    list-style: none;
    padding: 0;
    width: 100%;
}
#todo-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    transition: background var(--transition);
    width: 100%;
}
#todo-list li.completed {
    text-decoration: line-through;
    color: #bbb;
}

/* Mood Section: Clickable Buttons */
.mood-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.mood-btn {
    background: var(--card-bg);
    color: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    font-size: 1.4rem;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
    outline: none;
    box-shadow: 0 2px 8px rgba(154,72,208,0.07);
}
.mood-btn.selected,
.mood-btn:focus {
    background: var(--secondary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 12px var(--secondary);
}
#mood-quote {
    margin-top: 1rem;
    font-size: 1.1rem;
    text-align: center;
    color: var(--text);
}

/* Badges, Goals, Habits Section */
.badges-goals-habits {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    flex-wrap: wrap;
    justify-content: space-between;
}
#badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
    justify-content: center;
}
.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: opacity 0.3s;
}
.badge-img {
    width: 100px;
    height: 100px;
    margin-bottom: 0.5rem;
    display: block;
    object-fit: contain;
}
.badge small {
    font-size: 0.85rem;
    color: var(--text);
    text-align: center;
    margin-top: 0.2rem;
    font-weight: 600;
}

/* Goals, Habits List */
#goals-list, #habits-list {
    list-style: none;
    padding: 0;
    width: 100%;
    margin-bottom: 1rem;
}
.goal-item, .habit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}
.progress-bar-inner {
    height: 100%;
    background: var(--secondary);
    border-radius: 4px;
    transition: width 0.3s;
}
.streak {
    display: flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    background: var(--secondary);
    color: #fff;
    border-radius: 8px;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .dashboard-row, .badges-goals-habits {
        flex-direction: column;
        gap: 1rem;
        max-width: 95%;
    }
    .navbar {
        width: 95%;
        padding: 0.5rem 1rem;
    }
    .card, .badges-section, .goals-section, .habits-section {
        min-width: 0;
        padding: 1rem;
    }
    #badges-list {
        gap: 1.2rem;
    }
    .badge {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    .badge-img {
        width: 28px;
        height: 28px;
    }
}
@media (max-width: 600px) {
    .logo {
        font-size: 1.1rem;
    }
    .navbar ul {
        gap: 1rem;
    }
    #badges-list {
        gap: 1rem;
    }
    .badge {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    .badge-img {
        width: 20px;
        height: 20px;
    }
}
