/* =========================================================
   NEW UI - Easy Daily Tracker (GUEST VERSION - Refactored)
   This file now only contains styles specific to this page.
   ========================================================= */

/* --- 1. TOP BAR --- */
.top-bar-new-ui {
    display: flex;
    align-items: center;
    padding: 0px 8px;
    border-bottom: 1px solid var(--border-color);
    height: 36px;
}
.top-bar-back-arrow {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 24px;
    flex-shrink: 0;
}
.top-bar-new-ui h1 {
    flex-grow: 1;
    text-align: center;
    font-size: clamp(1.25rem, 7vw, 1.75rem); /* MMO: Replaced 28px with fluid size */
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dev-key-btn {
    background-color: var(--button-bg);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- 2. GUEST BANNER --- */
.guest-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(255, 69, 58, 0.15); /* Translucent error red */
    border: 1px solid rgba(255, 69, 58, 0.5);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.guest-banner:hover {
    background-color: rgba(255, 69, 58, 0.25);
}
.guest-banner-main {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.guest-banner-divider {
    width: 1px;
    height: 20px;
    background-color: var(--error-red);
    opacity: 0.5;
}
.guest-banner-action {
    font-size: 14px;
    color: var(--text-secondary);
}


/* --- 4. WEIGHT ENTRY --- */
.weight-entry-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.weight-entry-label {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}
.weight-entry-input {
    width: 100px;
    background-color: var(--button-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    padding: 4px;
}
.weight-entry-input::placeholder {
    color: var(--text-secondary);
    font-weight: normal;
}
.weight-entry-input::-webkit-outer-spin-button,
.weight-entry-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- 5. VIEW TOGGLE BUTTON --- */
.tab-container {
    display: flex;
    justify-content: center;
}

.toggle-view-btn {
    width: 250px;
    max-width: 250px;
    height: 50px;
    color: var(--background-page);
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    background-image: linear-gradient(to bottom, var(--accent-green), var(--darker-accent-green));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tab-content.hidden {
    display: none;
}

/* --- 6. UNIFIED LIST STYLES --- */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
}
.list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--button-bg);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.item-details {
    flex-grow: 1;
}
.item-details p {
    margin: 0;
}
.item-name {
    font-size: 16px;
    font-weight: 700;
}
.item-cals {
    font-size: 14px;
    color: var(--text-secondary);
}
.units-input {
    width: 60px;
    height: 40px;
    text-align: center;
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 16px;
    flex-shrink: 0;
}
.units-input:focus::placeholder {
    color: transparent;
}
.units-input::-webkit-outer-spin-button,
.units-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.total-cals-display {
    width: 60px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
}
.total-cals-display.is-zero {
    color: var(--text-secondary);
    font-weight: 400;
}
#food-content .total-cals-display:not(.is-zero) {
    color: var(--error-red);
}
#exercise-content .total-cals-display:not(.is-zero) {
    color: var(--accent-green);
}
.manage-list-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    max-width: 250px;
    height: 50px;
    color: var(--background-page);
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    background-image: linear-gradient(to bottom, var(--accent-green), var(--darker-accent-green));
}

/* --- NEW: Button Container & Secondary Style --- */
.manage-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px; /* User Request: 10px gap */
    max-width: 300px; /* User Request: Match exercise button width */
    margin: 16px auto 0 auto; /* Add margin top to separate from list */
}

.manage-list-btn.is-secondary {
    background-image: none;
    background-color: transparent;
    border: 1px solid var(--text-secondary); /* User Request: Light grey border */
    color: var(--text-secondary); /* User Request: Light grey font */
}


/* --- 7. GUIDED TOUR & ONBOARDING PANEL STYLES --- */
.onboarding-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px 24px; /* More vertical padding */
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--button-bg);
    position: relative;
}

.onboarding-gate p {
    font-size: 20px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}
.onboarding-gate h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
}

.onboarding-gate h2.is-success {
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.onboarding-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    height: 50px;
    color: var(--background-page);
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    background-image: linear-gradient(to bottom, var(--accent-green), var(--darker-accent-green));
    transition: background-color 0.2s;
}

.onboarding-btn.is-small {
    max-width: 200px;
    height: auto;
    padding: 10px 24px;
    font-size: 16px;
}

.onboarding-btn:disabled {
    background: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
}


/* --- 8. ONBOARDING ARROW & TOUR LAYOUT --- */
@keyframes nudge-left {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}

.weight-arrow {
    color: var(--error-red);
    font-size: 36px;
    animation: nudge-left 1.5s ease-in-out infinite;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.weight-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.weight-entry-container.is-tour-step {
    flex-direction: column;
    gap: 16px;
}
.weight-input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

/* --- 9. NEW: REGISTRATION NUDGE ARROW --- */
/* Why: Styles for the animated arrow that appears to guide users to the registration banner. */
.nudge-arrow {
    color: var(--error-red);
    font-size: 36px;
    animation: nudge-left 1.5s ease-in-out infinite;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.nudge-arrow.is-hidden {
    opacity: 0;
    pointer-events: none; /* Prevent interaction while invisible */
    animation: none;
}

/* --- 10. NEW: DAILY SNAPSHOT BANNER --- */
/* Why: Styles for the new "payoff" button that appears on a user's first day. */
.snapshot-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    /* MMO: User-specified styles for the gold button */
    background-image: linear-gradient(to bottom, #F0E68C, #DAA520);
    color: #000000; /* MMO: Black text color for readability on gold */
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}

.snapshot-banner-main {
    font-size: 16px;
    font-weight: 700;
    color: inherit; /* Inherits the black color from the parent */
}

.snapshot-banner-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Dark divider for contrast */
}

.snapshot-banner-action {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7); /* Slightly lighter black for the subtext */
}
/* === EOF: daily_log_guest.css === */