* {
    box-sizing: border-box;
}

:root {
    --primary: #d96b9b;
    --primary-light: #fce4ef;
    --background: #f7f7f8;
    --card: #ffffff;
    --text: #222222;
    --muted: #707070;
    --border: #e5e5e5;
    --soft: #fafafa;
}


body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    transition: background 0.3s ease;
}


.container {
    max-width: 1050px;
    margin: 35px auto;
    padding: 35px;
}


/* HEADER */

header {
    background: var(--card);
    padding: 30px;
    border-radius: 18px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}


.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}


h1 {
    margin: 0 0 12px;
    font-size: 34px;
}


.subtitle {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}


.icon-button {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    font-size: 22px;
    cursor: pointer;
}


.icon-button:hover {
    transform: translateY(-1px);
}


/* GENERAL SECTIONS */

.dashboard-section,
.customization-panel,
.tips-section,
.streak-section {
    background: var(--card);
    padding: 28px;
    border-radius: 18px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}


h2 {
    margin: 0 0 10px;
    font-size: 21px;
}


.section-description,
.section-title p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}


.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}


.section-title > span {
    background: var(--primary-light);
    color: var(--primary);
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}


/* CUSTOMIZATION */

.customization-panel {
    border: 2px solid var(--primary-light);
}


.hidden {
    display: none;
}


.customization-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 20px 0;
}


/* FORMS */

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
}


input,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 9px;
    background: white;
    color: var(--text);
    font-size: 15px;
    outline: none;
}


input:focus,
select:focus {
    border-color: var(--primary);
}


.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 25px;
}


.form-group {
    display: flex;
    flex-direction: column;
}


.color-input {
    height: 44px;
    padding: 4px;
    cursor: pointer;
}


/* BUTTONS */

.primary-button {
    border: none;
    background: var(--primary);
    color: white;
    padding: 13px 20px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}


.primary-button:hover {
    opacity: 0.9;
}


.small-button {
    border: none;
    background: var(--primary);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}


.add-task-button {
    margin-top: 22px;
}


/* DAILY GOAL */

.goal-area {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: center;
}


.goal-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.progress-area {
    padding: 20px;
    background: var(--soft);
    border-radius: 13px;
}


.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}


.progress-info strong {
    color: var(--primary);
}


.progress-background {
    width: 100%;
    height: 14px;
    background: #e9e9e9;
    border-radius: 20px;
    overflow: hidden;
}


.progress-bar {
    height: 100%;
    width: 0;
    background: var(--primary);
    border-radius: 20px;
    transition: width 0.4s ease;
}


.progress-area p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}


.sticker {
    font-size: 30px;
}


/* TASK CARDS */

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.task-card {
    border: 1px solid var(--border);
    border-left: 6px solid var(--primary);
    border-radius: 12px;
    padding: 17px;
    background: white;
}


.task-card.completed {
    opacity: 0.65;
}


.task-card.completed .task-name {
    text-decoration: line-through;
}


.task-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}


.task-title-area {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}


.task-sticker {
    font-size: 25px;
}


.task-name {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: bold;
}


.task-subject {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}


.task-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}


.task-tag {
    padding: 5px 9px;
    background: var(--soft);
    border-radius: 7px;
    color: #555;
    font-size: 12px;
}


.priority-high {
    background: #ffe5e5;
    color: #b33b3b;
}


.priority-medium {
    background: #fff3d6;
    color: #9a6a00;
}


.priority-low {
    background: #e6f5e9;
    color: #397548;
}


.task-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}


.task-actions button {
    border: none;
    padding: 7px 10px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    background: #eeeeee;
}


.task-actions .complete-button {
    background: var(--primary-light);
    color: var(--primary);
}


.task-actions .delete-button {
    background: #ffe8e8;
    color: #b33b3b;
}


.task-actions .edit-button {
    background: #eeeeee;
    color: #444;
}


/* FILTER */

.filter-area select {
    width: auto;
    min-width: 130px;
}


/* WEEKLY OVERVIEW */

.weekly-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 22px;
}


.day-card {
    padding: 16px 10px;
    text-align: center;
    background: var(--soft);
    border-radius: 11px;
    border: 1px solid var(--border);
}


.day-name {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
}


.day-number {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
}


.day-info {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}


/* SUBJECT PROGRESS */

.subject-progress-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 22px;
}


.subject-progress {
    padding: 16px;
    background: var(--soft);
    border-radius: 11px;
}


.subject-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;
}


.subject-header span {
    font-weight: bold;
    font-size: 14px;
}


.subject-header strong {
    color: var(--primary);
}


.subject-bar-background {
    width: 100%;
    height: 10px;
    background: #e8e8e8;
    border-radius: 20px;
    overflow: hidden;
}


.subject-bar {
    height: 100%;
    width: 0;
    background: var(--primary);
    border-radius: 20px;
    transition: width 0.4s ease;
}


/* STREAK */

.streak-section {
    display: flex;
    align-items: center;
    gap: 20px;
}


.streak-icon {
    font-size: 45px;
}


.streak-section p {
    margin: 5px 0 8px;
    color: var(--muted);
}


.streak-section strong {
    color: var(--primary);
    font-size: 22px;
}


/* TIPS */

.tips-section {
    background: var(--primary-light);
    border: none;
}


.tips-section ul {
    margin: 15px 0 0;
    padding-left: 20px;
}


.tips-section li {
    margin-bottom: 9px;
    line-height: 1.5;
    color: #555;
}


/* EMPTY MESSAGE */

.empty-message {
    padding: 25px;
    text-align: center;
    color: var(--muted);
    background: var(--soft);
    border-radius: 10px;
    margin: 0;
}


/* RESET */

.reset-area {
    text-align: center;
    margin: 25px 0 50px;
}


.reset-button {
    padding: 11px 18px;
    border: none;
    border-radius: 9px;
    background: #e5e5e5;
    color: #444;
    cursor: pointer;
    font-weight: bold;
}


.reset-button:hover {
    background: #dcdcdc;
}


/* THEME COLORS */

body.theme-pink {
    --primary: #d96b9b;
    --primary-light: #fce4ef;
}


body.theme-blue {
    --primary: #5c83c4;
    --primary-light: #e4edfb;
}


body.theme-purple {
    --primary: #8a6bbd;
    --primary-light: #eee7fa;
}


body.theme-green {
    --primary: #5f9b75;
    --primary-light: #e5f3e9;
}


body.theme-peach {
    --primary: #d98762;
    --primary-light: #fce9df;
}


/* MOBILE */

@media (max-width: 800px) {

    .container {
        margin: 15px;
        padding: 10px;
    }


    .form-grid,
    .customization-grid {
        grid-template-columns: 1fr;
    }


    .goal-area {
        grid-template-columns: 1fr;
    }


    .weekly-grid {
        grid-template-columns: repeat(4, 1fr);
    }

}


@media (max-width: 600px) {

    header,
    .dashboard-section,
    .customization-panel,
    .tips-section,
    .streak-section {
        padding: 20px;
        border-radius: 14px;
    }


    h1 {
        font-size: 27px;
    }


    .header-top {
        align-items: center;
    }


    .section-title {
        flex-direction: column;
        gap: 10px;
    }


    .section-title > span {
        align-self: flex-start;
    }


    .task-main {
        flex-direction: column;
    }


    .task-actions {
        width: 100%;
    }


    .task-actions button {
        flex: 1;
    }


    .weekly-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .streak-section {
        align-items: flex-start;
    }

}


@media (max-width: 400px) {

    .weekly-grid {
        grid-template-columns: 1fr;
    }

}