.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-header h2 {
    color: #333;
    margin: 0;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-selector label {
    font-weight: 600;
    color: #333;
}

.date-selector input {
    width: 150px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quick-add-section, .manual-add-section {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.quick-add-section h4, .manual-add-section h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-add-section h4 i, .manual-add-section h4 i {
    color: #667eea;
}

.food-search {
    position: relative;
}

.food-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.food-suggestion {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.food-suggestion:hover {
    background: #f8f9ff;
}

.food-suggestion:last-child {
    border-bottom: none;
}

.suggestion-name {
    font-weight: 600;
    color: #333;
}

.suggestion-calories {
    font-size: 0.9rem;
    color: #666;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.nutrition-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.macro-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    flex: 1;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.summary-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calorie-overview {
    text-align: center;
}

.calorie-circle {
    display: inline-block;
    position: relative;
    width: 200px;
    height: 200px;
}

.calorie-progress {
    position: relative;
    width: 100%;
    height: 100%;
}

.calorie-progress svg {
    width: 100%;
    height: 100%;
}

.calorie-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.current-calories {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.calorie-label {
    font-size: 1rem;
    color: #666;
    margin-top: -0.5rem;
}

.remaining-calories {
    font-size: 0.9rem;
    color: #333;
    margin-top: 0.5rem;
}

.goal-section {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.goal-section h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goal-section h4 i {
    color: #667eea;
}

.goal-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.macro-goals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.macro-progress {
    background: #f0f7ff;
    padding: 1.5rem;
    border-radius: 8px;
}

.macro-progress h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.macro-progress h4 i {
    color: #667eea;
}

.macro-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.macro-bar {
    background: white;
    padding: 1rem;
    border-radius: 8px;
}

.macro-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.macro-name {
    font-weight: 600;
    color: #333;
}

.macro-current {
    font-weight: 700;
    color: #667eea;
}

.macro-target {
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.protein-color { background: #2ecc71; }
.carbs-color { background: #f39c12; }
.fat-color { background: #e74c3c; }

.food-log-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 3rem 0;
}

.food-log-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.food-log-section h3 i {
    color: #667eea;
}

.food-entries {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.food-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9ff;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.food-info {
    flex: 1;
}

.food-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.food-details {
    font-size: 0.9rem;
    color: #666;
}

.food-nutrition {
    text-align: right;
}

.food-calories {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.food-macros {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.food-remove {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 1rem;
}

.food-remove:hover {
    background: #c0392b;
}

.no-entries {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.no-entries i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.info-section {
    margin: 3rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h3 i {
    color: #667eea;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.tool-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.history-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.history-item {
    padding: 1rem;
    background: #f8f9ff;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

@media (max-width: 768px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .tool-actions {
        flex-direction: column;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .macro-inputs {
        grid-template-columns: 1fr;
    }
    
    .macro-goals {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .calorie-circle {
        width: 150px;
        height: 150px;
    }
    
    .food-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .food-nutrition {
        text-align: left;
        width: 100%;
    }
}
