/* Olive Garden Nutrition Calculator Styles - Redesign */

:root {
    --og-primary: #587058;
    --og-primary-dark: #3a4a3a;
    --og-accent: #d4a017;
    --og-bg: #f5f5f5;
    --og-card-bg: #ffffff;
    --og-text: #222222;
    --og-text-light: #666666;
    --og-border: #e0e0e0;
    --og-radius: 12px;
    --og-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --og-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* WRAPPER */
.og-calc-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    background: var(--og-bg);
    padding: 20px;
    border-radius: var(--og-radius);
}

.og-calc-wrapper * {
    box-sizing: border-box;
}

/* -------------------------------
DASHBOARD / TOP
-------------------------------- */
.og-dashboard {
    background: var(--og-card-bg);
    border-radius: var(--og-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--og-shadow);
    text-align: center;
    position: sticky;
    top: 10px;
    z-index: 100;
    border: 1px solid var(--og-border);
}

.og-dash-main {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 10px;
}

.og-dash-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.og-dash-item .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--og-text-light);
    margin-bottom: 5px;
}

.og-dash-item .value {
    font-size: 32px;
    font-weight: 800;
    color: var(--og-primary);
}

.og-dash-item.price .value {
    color: var(--og-text);
}

.og-dash-details {
    display: none;
    margin-top: 20px;
    border-top: 1px solid var(--og-border);
    padding-top: 20px;
    animation: slideDown 0.3s ease;
}

.og-dash-details.open {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.og-nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.og-nut-item {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}

.og-nut-item .label {
    display: block;
    font-size: 10px;
    color: var(--og-text-light);
}

.og-controls {
    margin-bottom: 20px;
}

.og-search-bar {
    position: relative;
    margin-bottom: 15px;
}

.og-search-bar input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--og-border);
    border-radius: 50px;
    font-size: 16px;
    background: white;
}

.og-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--og-text-light);
}

.og-category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.og-category-nav::-webkit-scrollbar {
    display: none;
}

.og-cat-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    color: var(--og-text-light);
    transition: all 0.2s;
}

.og-cat-btn:hover {
    color: var(--og-primary);
}

.og-cat-btn.active {
    background: var(--og-primary);
    color: white;
    box-shadow: 0 2px 5px rgba(88, 112, 88, 0.3);
}

/* Menu Grid */
.og-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.og-menu-item {
    background: var(--og-card-bg);
    border: 2px solid transparent;
    border-radius: var(--og-radius);
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
}

.og-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--og-shadow-hover);
}

.og-menu-item.selected {
    border-color: var(--og-primary);
    background: #f0f7f0;
}

.og-menu-item.selected::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--og-primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.og-item-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--og-text);
    line-height: 1.3;
}

.og-item-price {
    font-size: 14px;
    color: var(--og-text-light);
    font-weight: 500;
}

.og-card-qty {
    display: none;
    font-size: 11px;
    color: var(--og-primary);
    font-weight: bold;
    margin-top: 5px;
}

margin-bottom: 10px;
}

.og-dash-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.og-dash-item .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--og-text-light);
    margin-bottom: 5px;
}

.og-dash-item .value {
    font-size: 32px;
    font-weight: 800;
    color: var(--og-primary);
}

.og-dash-item.price .value {
    color: var(--og-text);
}

.og-dash-details {
    display: none;
    margin-top: 20px;
    border-top: 1px solid var(--og-border);
    padding-top: 20px;
    animation: slideDown 0.3s ease;
}

.og-dash-details.open {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.og-nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.og-nut-item {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}

.og-nut-item .label {
    display: block;
    font-size: 10px;
    color: var(--og-text-light);
}

.og-controls {
    margin-bottom: 20px;
}

.og-search-bar {
    position: relative;
    margin-bottom: 15px;
}

.og-search-bar input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--og-border);
    border-radius: 50px;
    font-size: 16px;
    background: white;
}

.og-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--og-text-light);
}

.og-category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.og-category-nav::-webkit-scrollbar {
    display: none;
}

.og-cat-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    color: var(--og-text-light);
    transition: all 0.2s;
}

.og-cat-btn:hover {
    color: var(--og-primary);
}

.og-cat-btn.active {
    background: var(--og-primary);
    color: white;
    box-shadow: 0 2px 5px rgba(88, 112, 88, 0.3);
}

/* Menu Grid */
.og-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.og-menu-item {
    background: var(--og-card-bg);
    border: 2px solid transparent;
    border-radius: var(--og-radius);
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
}

.og-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--og-shadow-hover);
}

.og-menu-item.selected {
    border-color: var(--og-primary);
    background: #f0f7f0;
}

.og-menu-item.selected::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--og-primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.og-item-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--og-text);
    line-height: 1.3;
}

.og-item-price {
    font-size: 14px;
    color: var(--og-text-light);
    font-weight: 500;
}

.og-card-qty {
    display: none;
    font-size: 11px;
    color: var(--og-primary);
    font-weight: bold;
    margin-top: 5px;
}

.og-menu-item.selected .og-card-qty {
    display: block;
}

/* Mobile */
@media (max-width: 600px) {
    .og-menu-grid {
        grid-template-columns: 1fr 1fr;
    }

    .og-dash-main {
        gap: 20px;
    }

    .og-dash-item .value {
        font-size: 24px;
    }
}

/* ---------------------------------
   DETAILS PANEL & LIST STYLING (Restored)
---------------------------------- */

/* The "Tap items below..." text */
.og-empty-msg {
    text-align: center;
    color: var(--og-text-light);
    font-style: italic;
    padding: 20px 0;
    font-size: 14px;
}

/* The "Show Details" Toggle Button */
.og-toggle-btn {
    background: transparent;
    border: 1px solid var(--og-border);
    color: var(--og-text);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
    display: inline-block;
}

.og-toggle-btn:hover {
    border-color: var(--og-primary);
    color: var(--og-primary);
    background: #f0f7f0;
}

/* Added Item Row - Single Line Layout */
.og-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.og-detail-name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: var(--og-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.og-detail-center {
    flex: 0 0 auto;
}

.og-qty-control {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 6px;
    padding: 2px;
}

.og-qty-mini {
    width: 24px;
    height: 24px;
    border: none;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--og-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s;
}

.og-qty-mini:active {
    transform: scale(0.95);
}

.og-qty-num {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}

.og-detail-price {
    flex: 0 0 60px;
    text-align: right;
    font-weight: 600;
    color: var(--og-text-light);
    font-size: 14px;
}

/* Clear All Link */
.og-text-btn {
    display: block;
    margin: 15px auto 0;
    background: none;
    border: none;
    color: #d32f2f;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.8;
}

.og-text-btn:hover {
    opacity: 1;
}