.calorie-calculator {
    max-width: 900px;
    margin: 20px auto;
    padding: 0;
    background: transparent;
    font-family: inherit;
    border: none;
}

/* Progress Tabs */
.progress-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex: 1;
    margin: 0 5px;
}

.tab:hover {
    background: #e9ecef;
}

.tab.active {
    background: #007cba;
    color: white;
}

.tab-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.tab.active .tab-number {
    background: white;
    color: #007cba;
}

.tab-label {
    font-size: 14px;
    font-weight: 500;
}

/* Tab Content */
.tab-content {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

.tab-content h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

/* Buttons */
.calculate-btn, .next-btn, .back-btn, .save-meal-btn, .delete-meal-btn, .my-meals-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.calculate-btn, .next-btn {
    background: #007cba;
    color: white;
    width: 100%;
}

.calculate-btn:hover, .next-btn:hover {
    background: #005a87;
}

.back-btn, .my-meals-btn {
    background: #6c757d;
    color: white;
}

.back-btn:hover, .my-meals-btn:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
}

.save-meal-btn {
    background: #28a745;
    color: white;
    font-size: 14px;
    padding: 8px 16px;
}

.save-meal-btn:hover {
    background: #218838;
}

.delete-meal-btn {
    background: #dc3545;
    color: white;
    font-size: 14px;
    padding: 8px 16px;
}

.delete-meal-btn:hover {
    background: #c82333;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.button-group .back-btn {
    flex: 1;
}

.button-group .next-btn {
    flex: 1;
}

/* Lock Button */
.lock-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lock-btn:hover {
    background: #f8f9fa;
}

.lock-btn.locked {
    background: #007cba;
    color: white;
}

.lock-btn.locked:hover {
    background: #005a87;
}

/* Results Section */
.result-item {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
}

.macro-section {
    margin-top: 25px;
}

.macro-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.macro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.macro-item label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.macro-slider {
    width: 70%;
    margin-right: 15px;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.macro-slider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.macro-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
}

.macro-slider:disabled::-webkit-slider-thumb {
    background: #6c757d;
    cursor: not-allowed;
}

.macro-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
    border: none;
}

.macro-slider:disabled::-moz-range-thumb {
    background: #6c757d;
    cursor: not-allowed;
}

.percentage-total {
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

/* Meal Cards */
.meal-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.meal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.meal-card h5 {
    color: #007cba;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    padding-right: 40px;
}

.meal-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 15px;
}

.meal-macros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.macro-info {
    text-align: center;
}

.macro-info .macro-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    margin-bottom: 5px;
}

.macro-info .macro-value {
    font-size: 20px;
    color: #007cba;
    font-weight: bold;
}

.meal-actions {
    text-align: right;
}

/* Bookmark Button */
.bookmark-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ccc;
    transition: all 0.3s ease;
    padding: 5px;
}

.bookmark-btn:hover {
    color: #007cba;
    transform: scale(1.1);
}

.bookmark-btn.saved {
    color: #007cba;
}

.bookmark-btn.saving {
    color: #ffc107;
}

/* Saved Meals */
.saved-meals {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.saved-meals h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

.saved-meal-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #007cba;
}

.saved-meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.saved-meal-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.saved-meal-macros {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calorie-calculator {
        margin: 10px;
        padding: 0;
    }
    
    .saved-meals {
        margin: 10px;
        padding: 20px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    /* Mobile Progress Tabs - Horizontal layout with numbers only */
    .progress-tabs {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
        background: #f8f9fa;
        border-radius: 8px;
        padding: 8px;
        gap: 5px;
    }
    
    .tab {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 12px 8px;
        flex: 1;
        margin: 0;
        min-width: 0;
    }
    
    .tab-number {
        margin-bottom: 0;
        width: 35px;
        height: 35px;
        font-size: 16px;
        font-weight: bold;
    }
    
    /* Hide tab labels on mobile */
    .tab-label {
        display: none;
    }
    
    /* Hide lock buttons on mobile */
    .lock-btn {
        display: none;
    }
    
    /* Adjust macro header for mobile without lock buttons */
    .macro-header {
        justify-content: flex-start;
        margin-bottom: 10px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .meal-macros {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .saved-meal-macros {
        flex-direction: column;
        gap: 5px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}