/* =========================================
   GLOBAL
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f9fc;
    color: #333;
}

button {
    font-family: inherit;
}


/* =========================================
   MAIN CONTAINER
========================================= */

.toolbox-container {
    max-width: 950px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}


/* =========================================
   HEADER
========================================= */

.toolbox-header {
    text-align: center;
    margin-bottom: 30px;
}

.toolbox-header h1 {
    margin-bottom: 8px;
    font-size: 32px;
}

.toolbox-header p {
    margin: 0;
    color: #666;
}


/* =========================================
   TOOL MENU
========================================= */

.tool-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.tool-button {
    border: none;
    padding: 15px 10px;
    border-radius: 12px;
    cursor: pointer;
    background: #f0f2f5;
    color: #333;
    font-size: 15px;
    transition: 0.2s ease;
}

.tool-button:hover {
    transform: translateY(-2px);
}

.tool-button.active {
    background: #333;
    color: #ffffff;
}

.tool-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}


/* =========================================
   TOOL CONTENT
========================================= */

.tool-content {
    display: none;
    text-align: center;
    min-height: 500px;
}

.tool-content.active-tool {
    display: block;
}

.tool-content h2 {
    margin-top: 10px;
    font-size: 28px;
}

.tool-description {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #666;
    line-height: 1.6;
}


/* =========================================
   BUTTONS
========================================= */

.button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.primary-button,
.secondary-button,
.suggestion-button {
    border: none;
    border-radius: 10px;
    padding: 12px 22px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s ease;
}

.primary-button {
    background: #333;
    color: white;
}

.primary-button:hover {
    transform: translateY(-2px);
}

.secondary-button {
    background: #eeeeee;
    color: #333;
}

.secondary-button:hover {
    background: #dddddd;
}

.suggestion-button {
    margin-top: 15px;
    background: #eeeeee;
}

.tool-note {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 10px;
    color: #666;
    font-size: 14px;
}


/* =========================================
   BREATHING
========================================= */

.breathing-area {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 280px;
}

.breathing-circle {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: #e8e8e8;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 20px;

    font-size: 20px;
    font-weight: bold;

    transition: transform 4s ease-in-out;
}

.breathing-circle.expand {
    transform: scale(1.45);
}

.breathing-circle.hold {
    transform: scale(1.45);
}

.breathing-circle.contract {
    transform: scale(1);
}

.breathing-instruction {
    font-size: 18px;
    min-height: 25px;
}


/* =========================================
   MOOD CHECK-IN
========================================= */

.mood-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.mood-button {
    width: 105px;
    min-height: 115px;
    border: 2px solid #eeeeee;
    background: white;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.2s ease;
}

.mood-button:hover,
.mood-button.selected {
    transform: translateY(-4px);
    border-color: #555;
}

.mood-button span {
    display: block;
    font-size: 42px;
    margin-bottom: 8px;
}

.mood-button small {
    font-size: 14px;
}

.mood-result {
    max-width: 650px;
    margin: 30px auto 0;
    padding: 25px;
    background: #f7f7f7;
    border-radius: 15px;
    min-height: 100px;
}

.mood-result p {
    margin: 0;
    line-height: 1.6;
    font-size: 17px;
}

.privacy-note {
    margin-top: 20px;
    color: #777;
    font-size: 13px;
}


/* =========================================
   TIMER
========================================= */

.timer-presets {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.timer-preset {
    border: none;
    background: #eeeeee;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.timer-preset.active-preset {
    background: #333;
    color: white;
}

.timer-display {
    font-size: 80px;
    font-weight: bold;
    letter-spacing: 3px;
    margin: 25px 0 10px;
}

.timer-status {
    color: #666;
}


/* =========================================
   POSITIVE REMINDER
========================================= */

.reminder-card {
    max-width: 650px;
    min-height: 220px;
    margin: 30px auto;
    padding: 35px;
    background: #f7f7f7;
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

#reminderText {
    font-size: 23px;
    line-height: 1.6;
    margin: 0;
}

.reminder-small-text {
    margin-top: 20px;
    color: #777;
    font-size: 14px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    body {
        padding: 10px;
    }

    .toolbox-container {
        padding: 20px 15px;
    }

    .tool-menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .timer-display {
        font-size: 55px;
    }

    .tool-content h2 {
        font-size: 24px;
    }

    .breathing-circle {
        width: 140px;
        height: 140px;
    }

    .mood-button {
        width: 90px;
        min-height: 105px;
    }

}