@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #FAF9F7;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    background-color: #FAF9F7;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 24px 24px;
    padding-bottom: 100px;
}

.app-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 100%;
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Sign In Button */
.sign-in-btn {
    margin-top: 16px;
    background: none;
    border: 1.5px solid #5A9A95;
    color: #5A9A95;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sign-in-btn:hover {
    background-color: #5A9A95;
    color: white;
}

/* Account Menu positioning in header */
.account-menu {
    position: relative;
    margin-top: 16px;
}

.account-btn {
    background: none;
    border: 1.5px solid #5A9A95;
    color: #5A9A95;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-btn:hover {
    background-color: #5A9A95;
    color: white;
}

.account-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background-color: #FFF;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    z-index: 100;
    display: none;
    overflow: hidden;
}

.account-dropdown.show {
    display: block;
}

.account-dropdown .dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    background: none;
    border: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.account-dropdown .dropdown-item:hover {
    background-color: #F5F5F5;
}

.account-dropdown .dropdown-item.logout {
    color: #DC2626;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #5A9A95;
    margin-bottom: 8px;
    text-align: center;
}

.instruction {
    font-size: 14px;
    color: #7A7A7A;
    margin-bottom: 40px;
    text-align: center;
    max-width: 320px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    flex-shrink: 0;
}

.btn-feeling {
    background-color: #4A8B87;
    color: white;
}

.btn-feeling:hover {
    background-color: #3D7570;
}

.btn-somatic {
    background-color: #A8D5E2;
    color: #2B5F6F;
}

.btn-somatic:hover {
    background-color: #8FC5D6;
}

.btn-human-design {
    background-color: #C8D5B9;
    color: #4A6B3A;
}

.btn-human-design:hover {
    background-color: #B5C7A4;
}

.btn-visualization {
    background-color: #4F6D7A;
    color: white;
}

.btn-visualization:hover {
    background-color: #3F5A64;
}

.btn-daily-intention {
    background-color: #d4bfa4;
    color: #5C4A3D;
}

.btn-daily-intention:hover {
    background-color: #c4af94;
}

/* Daily Intention Page */
.intention-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.intention-title {
    font-size: 24px;
    font-weight: 600;
    color: #5A9A95;
    margin-bottom: 12px;
}

.intention-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 4px;
}

.intention-helper {
    font-size: 14px;
    color: #7A7A7A;
    margin-bottom: 32px;
}

.prompt-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 32px;
}

.prompt-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.prompt-option input[type="radio"] {
    display: none;
}

.prompt-text {
    font-size: 15px;
    color: #555;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.prompt-option:hover .prompt-text {
    color: #5A9A95;
}

.prompt-option input[type="radio"]:checked + .prompt-text {
    color: #5A9A95;
    font-weight: 500;
}

.prompt-option input[type="radio"]:checked + .prompt-text::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #5A9A95;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.intention-input-section {
    width: 100%;
    max-width: 400px;
    margin-bottom: 24px;
}

.intention-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    resize: vertical;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.intention-textarea::placeholder {
    color: #999;
}

.intention-textarea:focus {
    outline: none;
    border-color: #5A9A95;
    box-shadow: 0 0 0 3px rgba(90, 154, 149, 0.1);
}

.textarea-helper {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

.save-intention-btn {
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    background-color: #5A9A95;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(90, 154, 149, 0.3);
}

.save-intention-btn:hover {
    background-color: #4A8B87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 154, 149, 0.4);
}

.save-intention-btn:active {
    transform: translateY(0);
}

.peace-points-text {
    font-size: 13px;
    color: #7A7A7A;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sparkle-icon {
    font-size: 14px;
}

.intention-footer {
    margin-top: 32px;
}

.intention-footer .footer-text {
    font-size: 14px;
    color: #999;
    margin: 4px 0;
}

/* Saved State */
.hidden {
    display: none !important;
}

.saved-state {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.saved-label {
    font-size: 13px;
    font-weight: 500;
    color: #7A7A7A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.saved-intention-display {
    width: 100%;
    padding: 20px 24px;
    background-color: #f8f8f6;
    border-radius: 12px;
    border: 1px solid #E8E8E6;
    margin-bottom: 16px;
}

.saved-intention-text {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.saved-confirmation {
    font-size: 14px;
    color: #5A9A95;
    font-style: italic;
    margin-bottom: 12px;
}

.peace-points-earned {
    font-size: 13px;
    color: #7A7A7A;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: #D9E5D6;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 24px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.2s ease;
    color: #7A8C76;
}

.nav-item:hover {
    color: #4A8B87;
}

.nav-item.active {
    color: #4A8B87;
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 480px) {
    .main-content {
        padding: 32px 20px 24px;
    }

    .logo {
        max-width: 140px;
    }

    .action-btn {
        padding: 18px 24px;
        font-size: 15px;
    }

    .bottom-nav {
        padding: 10px 16px;
    }

    .nav-item {
        padding: 6px 8px;
    }
}

@media (max-width: 360px) {
    .logo {
        max-width: 120px;
    }

    .action-btn {
        padding: 16px 20px;
        font-size: 14px;
    }

    .instruction {
        font-size: 13px;
    }

    .nav-item {
        padding: 6px 6px;
    }

    .nav-label {
        font-size: 10px;
    }

    .bottom-nav {
        padding: 10px 12px;
    }
}

@media (min-width: 481px) {
    .main-content {
        padding: 60px 40px 24px;
    }

    .app-header {
        margin-bottom: 50px;
    }

    .logo {
        max-width: 180px;
    }
}
